Preparation tools for machine learning
Project description
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(),
ModifiedSelectFromModel(model, random_state=0, threshold=1e-06),
model,
)
model.fit(X, y)
Installation
pip install pretools
Testing
python setup.py test
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pretools-0.2.0.tar.gz
(12.8 kB
view hashes)
Built Distribution
pretools-0.2.0-py3-none-any.whl
(11.2 kB
view hashes)