Git Product home page Git Product logo

sktools's Introduction

sktools

Documentation Status https://static.pepy.tech/personalized-badge/sktools?period=total&units=international_system&left_color=black&right_color=brightgreen&left_text=Downloads

sktools provides tools to extend sklearn, like several feature engineering based transformers.

Installation

To install sktools, run this command in your terminal:

$ pip install sktools

Documentation

Can be found in 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.QuantileEncoder performs target aggregation using a quantile instead of the mean.
  • sktools.preprocessing.CyclicFeaturizer converts numeric to cyclical features via sine and cosine transformations.
  • 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.
  • sktools.ensemble.MedianForestRegressor applies the median instead of the mean when aggregating trees predictions.
  • sktools.linear_model.QuantileRegression sklearn style wrapper for quantile regression.
  • sktools.model_selection.BootstrapFold bootstrap cross-validator.
  • sktools.GradientBoostingFeatureGenerator Automated feature generation through gradient boosting.

Contributing

Fork/clone, in a fresh environment, run:

$ pip install -e ".[dev]"

To check if the unit tests are ok, run

$ make test

License

MIT license

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

sktools's People

Contributors

david26694 avatar cmougan avatar dependabot[bot] avatar dmasip-rxd avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.