pretools
Preparation tools for machine learning.
Examples
from pretools.estimators import *
from sklearn.datasets import load_boston
from sklearn.pipeline import make_pipeline
X, y = load_boston(return_X_y=True)
model = ModifiedCatBoostRegressor(random_state=0, verbose=100)
model = make_pipeline(
Profiler(),
Astype(),
NUniqueThreshold(max_freq=None),
DropCollinearFeatures(method="spearman", random_state=0),
ClippedFeatures(),
ModifiedStandardScaler(),
ModifiedSelectFromModel(model, random_state=0, threshold=1e-06),
CombinedFeatures(include_data=True),
ModifiedSelectFromModel(model, random_state=0, threshold=1e-06),
model,
)
model.fit(X, y)
Installation
pip install pretools
Testing
python setup.py test
Release files for pretools 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pretools-0.3.0.tar.gz | 13.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pretools-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.5 kB
Release files / pretools-0.3.0.tar.gz
| Download URL | pretools-0.3.0.tar.gz |
|---|---|
| Size | 13.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e0216e9bfc8ba922c39395e27bdd13945bab5decaedb6e06ce584e4f7f54b72b
|
|
BLAKE2b-256 checksum How to use checksums |
c66ea5953338dcb1b932c1a1af77853b0e9c5edf8ba6317af99a1681a565c476
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1
|
Release files / pretools-0.3.0-py3-none-any.whl
| Download URL | pretools-0.3.0-py3-none-any.whl |
|---|---|
| Size | 11.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d5c090dc657017406271200a48737f71ec13c42164bdc20308d0d6ce68cd2876
|
|
BLAKE2b-256 checksum How to use checksums |
3fd9908b9f4a87545100b7f8d1ca38a924458caec4333036263c110cd7b376c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1
|