Tools to extend sklearn
Project description
sktools
Tools to extend sklearn
Free software: MIT license
Documentation: https://sktools.readthedocs.io
Usage
from sktools import IsEmptyExtractor
from sklearn.linear_model import LogisticRegression
from sklearn.pipeline import Pipeline
...
mod = Pipeline([
("impute-features", IsEmptyExtractor),
("model", LogisticRegression())
])
...
Features
Here’s a list of features that sktools currently offers:
sktools.encoders.NestedTargetEncoder performs target encoding suited for variables with nesting.
sktools.encoders.PercentileEncoder performs target aggregation using a quantile instead of the mean.
sktools.impute.IsEmptyExtractor creates binary variables indicating if there are missing values.
sktools.matrix_denser.MatrixDenser transformer that converts sparse matrices to dense.
sktools.quantilegroups.GroupedQuantileTransformer creates quantiles of a feature by group.
sktools.quantilegroups.PercentileGroupFeaturizer creates features regarding how an instance compares with a quantile of its group.
sktools.quantilegroups.MeanGroupFeaturizer creates features regarding how an instance compares with the mean of its group.
sktools.selectors.TypeSelector gets variables matching a type.
sktools.selectors.ItemsSelector allows to manually choose some variables.
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1.0 (2020-04-19)
First release on PyPI.
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
Built Distribution
Hashes for sktools-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe1a4cd51278c35ea75a916476aaab4b838dc53b89d56a1003a4ecbc688aa7d0 |
|
MD5 | 2bb233cea62127233e01654a8f0e9873 |
|
BLAKE2b-256 | d0f415aa9517de6e736c0e6fed84ba84cda3aaebc99db331bd85508da2da9e9b |