semvec/pypi-packages huggingface dataset:
textwrapper 1.0.2
Wraps text without breaking words.
License: MIT
Requires Python: >=3.6

# textwrapper

Wraps your text files to a given width (defaults to 72), without breaking words.

I use it to format AoC problems to python docstrings for [my solutions repo][1].

I also use it for [Daily Byte][2].

## Installation

```console
pip install textwrapper
```

## Usage

```console
textwrap path/to/file
```

[1]: https://github.com/tusharsadhwani/aoc2020
[2]: https://github.com/tusharsadhwani/daily_byte
realkd 0.2.1
Methods for knowledge discovery and interpretable machine learning.
License: MIT
Requires Python: >=3.6

# realkd.py

Methods for knowledge discovery from data and interpretable machine learning.
Currently, package contains primarily rule ensembles learners.

```
    >>> import pandas as pd
    >>> from sklearn.metrics import roc_auc_score
    >>> from realkd.rules import RuleBoostingEstimator, XGBRuleEstimator
    >>> titanic = pd.read_csv('../datasets/titanic/train.csv')
    >>> survived = titanic.Survived
    >>> titanic.drop(columns=['PassengerId', 'Name', 'Ticket', 'Cabin', 'Survived'], inplace=True)
    >>> re = RuleBoostingEstimator(base_learner=XGBRuleEstimator(loss=logistic_loss))
    >>> re.fit(titanic, survived.replace(0, -1), verbose=0)
       -1.4248 if Pclass>=2 & Sex==male
       +1.7471 if Pclass<=2 & Sex==female
       +2.5598 if Age<=19.0 & Fare>=7.8542 & Parch>=1.0 & Sex==male & SibSp<=1.0
```

See the full [documentation](https://realkdpy.readthedocs.io/en/latest/index.html).