Skip to main content

Extends scikit-learn with a couple of new models, transformers, metrics, plotting.

Project description

https://github.com/sdpython/mlinsights/blob/master/_doc/sphinxdoc/source/phdoc_static/project_ico.png?raw=true

mlinsights - extensions to scikit-learn

Build status Build Status Windows https://circleci.com/gh/sdpython/mlinsights/tree/master.svg?style=svg https://dev.azure.com/xavierdupre3/mlinsights/_apis/build/status/sdpython.mlinsights%20(2) https://badge.fury.io/py/mlinsights.svg MIT License Requirements Status https://codecov.io/github/sdpython/mlinsights/coverage.svg?branch=master GitHub Issues Notebook Coverage Downloads Forks Stars size

mlinsights extends scikit-learn with a couple of new models, transformers, metrics, plotting. It provides new trainers such as QuantileLinearRegression which trains a linear regression with L1 norm non-linear correlation based on decision trees, or QuantileMLPRegressor a modification of scikit-learn’s MLPRegressor which trains a multi-layer perceptron with L1 norm. It also explores PredictableTSNE which trains a supervized model to replicate t-SNE results or a PiecewiseRegression which partitions the data before fitting a model on each bucket.

Function pipeline2dot converts a pipeline into a graph:

from mlinsights.plotting import pipeline2dot
dot = pipeline2dot(clf, df)
https://github.com/sdpython/mlinsights/raw/master/_doc/pipeline.png

History

current - 2021-01-09 - 0.00Mb

  • 93: Include build wheel for all platforms in CI (2021-01-09)

0.3.543 - 2021-01-03 - 0.67Mb

  • 89: Install fails: ModuleNotFoundError: No module named ‘sklearn’ (2021-01-03)

  • 92: QuantileMLPRegressor does not work with scikit-learn 0.24 (2021-01-01)

  • 91: Fixes regression criterion for scikit-learn 0.24 (2021-01-01)

  • 90: Fixes PipelineCache for scikit-learn 0.24 (2021-01-01)

0.2.508 - 2020-09-02 - 0.43Mb

  • 88: Change for scikit-learn 0.24 (2020-09-02)

  • 87: Set up CI with Azure Pipelines (2020-09-02)

  • 86: Update CI, use python 3.8 (2020-09-02)

  • 71: update kmeans l1 to the latest kmeans (signatures changed) (2020-08-31)

  • 84: style (2020-08-30)

0.2.491 - 2020-08-06 - 0.83Mb

  • 83: Upgrade version (2020-08-06)

  • 82: Fixes #81, skl 0.22, 0.23 together (2020-08-06)

  • 81: Make mlinsights work with scikit-learn 0.22 and 0.23 (2020-08-06)

  • 79: pipeline2dot fails with ‘passthrough’ (2020-07-16)

0.2.463 - 2020-06-29 - 0.83Mb

  • 78: Removes strong dependency on pyquickhelper (2020-06-29)

0.2.450 - 2020-06-08 - 0.83Mb

  • 77: Add parameter trainable to TransferTransformer (2020-06-07)

0.2.447 - 2020-06-03 - 0.83Mb

  • 76: ConstraintKMeans does not produce convex clusters. (2020-06-03)

  • 75: Moves kmeans with constraint from papierstat. (2020-05-27)

  • 74: Fix PipelineCache after as scikti-learn 0.23 changed the way parameters is handle in pipelines (2020-05-15)

  • 73: ClassifierKMeans.__repr__ fails with scikit-learn 0.23 (2020-05-14)

  • 69: Optimizes k-means with norm L1 (2020-01-13)

0.2.360 - 2019-09-15 - 0.68Mb

  • 66: Fix visualisation graph: does not work when column index is an integer in ColumnTransformer (2019-09-15)

  • 59: Add GaussianProcesses to the notebook about confidence interval and regression (2019-09-15)

  • 65: Implements a TargetTransformClassifier similar to TargetTransformRegressor (2019-08-24)

  • 64: Implements a different version of TargetTransformRegressor which includes predefined functions (2019-08-24)

  • 63: Add a transform which transform the target and applies the inverse function of the prediction before scoring (2019-08-24)

  • 49: fix menu in documentation (2019-08-24)

0.2.312 - 2019-07-13 - 0.66Mb

  • 61: Fix bug in pipeline2dot when keyword “passthrough is used” (2019-07-11)

  • 60: Fix visualisation of pipeline which contains string “passthrough” (2019-07-09)

  • 58: Explores a way to compute recommandations without training (2019-06-05)

0.2.288 - 2019-05-28 - 0.66Mb

  • 56: Fixes #55, explore caching for scikit-learn pipeline (2019-05-22)

  • 55: Explore caching for gridsearchCV (2019-05-22)

  • 53: implements a function to extract intermediate model outputs within a pipeline (2019-05-07)

  • 51: Implements a tfidfvectorizer which keeps more information about n-grams (2019-04-26)

  • 46: implements a way to determine close leaves in a decision tree (2019-04-01)

  • 44: implements a model which produces confidence intervals based on bootstrapping (2019-03-29)

  • 40: implements a custom criterion for a decision tree optimizing for a linear regression (2019-03-28)

  • 39: implements a custom criterion for decision tree (2019-03-26)

  • 41: implements a direct call to a lapack function from cython (2019-03-25)

  • 38: better implementation of a regression criterion (2019-03-25)

0.1.199 - 2019-03-05 - 0.05Mb

  • 37: implements interaction_only for polynomial features (2019-02-26)

  • 36: add parameter include_bias to extended features (2019-02-25)

  • 34: rename PiecewiseLinearRegression into PiecewiseRegression (2019-02-23)

  • 33: implement the piecewise classifier (2019-02-23)

  • 31: uses joblib for piecewise linear regression (2019-02-23)

  • 30: explore transpose matrix before computing the polynomial features (2019-02-17)

  • 29: explore different implementation of polynomialfeatures (2019-02-15)

  • 28: implement PiecewiseLinearRegression (2019-02-10)

  • 27: implement TransferTransformer (2019-02-04)

  • 26: add function to convert a scikit-learn pipeline into a graph (2019-02-01)

  • 25: implements kind of trainable t-SNE (2019-01-31)

  • 6: use keras and pytorch (2019-01-03)

  • 22: modifies plot gallery to impose coordinates (2018-11-10)

  • 20: implements a QuantileMLPRegressor (quantile regression with MLP) (2018-10-22)

  • 19: fix issues introduced with changes in keras 2.2.4 (2018-10-06)

  • 18: remove warning from scikit-learn about cloning (2018-09-16)

  • 16: move CI to python 3.7 (2018-08-21)

  • 17: replace as_matrix by values (pandas deprecated warning) (2018-07-29)

  • 14: add transform to convert a learner into a transform (sometimes called a featurizer) (2018-06-19)

  • 13: add transform to do model stacking (2018-06-19)

  • 8: move items from papierstat (2018-06-19)

  • 12: fix bug in quantile regression: wrong weight for linear regression (2018-06-16)

  • 11: specifying quantile (2018-06-16)

  • 4: add function to compute non linear correlations (2018-06-16)

  • 10: implements combination between logistic regression and k-means (2018-05-27)

  • 9: move items from ensae_teaching_cs (2018-05-08)

  • 7: add quantile regression (2018-05-07)

  • 5: replace flake8 by code style (2018-04-14)

  • 1: change background for cells in notebooks converted into rst then in html, highlight-ipython3 (2018-01-05)

  • 2: save features and metadatas for the search engine and retrieves them (2017-12-03)

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

mlinsights-0.3.549.tar.gz (705.0 kB view details)

Uploaded Source

Built Distributions

mlinsights-0.3.549-cp39-cp39-win_amd64.whl (493.5 kB view details)

Uploaded CPython 3.9 Windows x86-64

mlinsights-0.3.549-cp39-cp39-macosx_10_9_x86_64.whl (488.9 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

mlinsights-0.3.549-cp38-cp38-win_amd64.whl (493.0 kB view details)

Uploaded CPython 3.8 Windows x86-64

mlinsights-0.3.549-cp38-cp38-macosx_10_9_x86_64.whl (478.1 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

mlinsights-0.3.549-cp37-cp37m-win_amd64.whl (487.2 kB view details)

Uploaded CPython 3.7m Windows x86-64

mlinsights-0.3.549-cp37-cp37m-macosx_10_9_x86_64.whl (480.7 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

File details

Details for the file mlinsights-0.3.549.tar.gz.

File metadata

  • Download URL: mlinsights-0.3.549.tar.gz
  • Upload date:
  • Size: 705.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.7

File hashes

Hashes for mlinsights-0.3.549.tar.gz
Algorithm Hash digest
SHA256 ba082a52c940448902424a8b0ce5dbbcd28dda01a61e3a46dc4e1715aced1823
MD5 08427056ba34a54694177291d58b9aa8
BLAKE2b-256 fd46b7d34d8695e773784bada069d8818d36a554360710f77bf527f882016959

See more details on using hashes here.

File details

Details for the file mlinsights-0.3.549-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: mlinsights-0.3.549-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 493.5 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.7

File hashes

Hashes for mlinsights-0.3.549-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f845b921a17877d99aa75d3bc288b1688231d29b69d60dfbc099422f60f36fc8
MD5 56ba3a240c870fd1f0c210447cbf7a3b
BLAKE2b-256 38c5e6b8fd9ca6387b7a20a286d94b581ef52db02ffb107a30a20ab16badc0bc

See more details on using hashes here.

File details

Details for the file mlinsights-0.3.549-cp39-cp39-manylinux2014_x86_64.whl.

File metadata

  • Download URL: mlinsights-0.3.549-cp39-cp39-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 2.1 MB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.7

File hashes

Hashes for mlinsights-0.3.549-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 927b4db036d5589ce74514853898490b85beba15ed088e598170000cc7c22524
MD5 c64e206232666a36fc5498ede675b0bb
BLAKE2b-256 e6953fc5cfd753497ea9e1941ef9e39aae309ca362c8d4cd4e8db549e375ba82

See more details on using hashes here.

File details

Details for the file mlinsights-0.3.549-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: mlinsights-0.3.549-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 488.9 kB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.7

File hashes

Hashes for mlinsights-0.3.549-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 fcd13a7ffa921027f3275684d2f6c17e17d2c12f6ea00443cd854545ee03bf18
MD5 1a032f38b54b1d7915f29555494e0a01
BLAKE2b-256 03752b3fa157f420febc1300d51f4db1aa54e7406b7d7a49ecde2f557b50e55f

See more details on using hashes here.

File details

Details for the file mlinsights-0.3.549-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: mlinsights-0.3.549-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 493.0 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.7

File hashes

Hashes for mlinsights-0.3.549-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 85bc5269f07e34429778d0d370854218a54ff187c9f2494f505977f3f66a513c
MD5 61e0f15eed9510aad8aea964781bbaec
BLAKE2b-256 c2c1da40585f9799845d564fdcfe3e19908a74e6fbafdf287712343df8aad9f9

See more details on using hashes here.

File details

Details for the file mlinsights-0.3.549-cp38-cp38-manylinux2014_x86_64.whl.

File metadata

  • Download URL: mlinsights-0.3.549-cp38-cp38-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.7

File hashes

Hashes for mlinsights-0.3.549-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bb2a597c69dd8d172f44434ad1f65e9303e996b8da783ca0bc2c66a5c6b546bd
MD5 638510e23f27878d0391c96cc111e7ca
BLAKE2b-256 49bb5db33bafc6bc5be9ac8cacdc789c1b662ffcd4d1d7f42a1da34e7cf6fb56

See more details on using hashes here.

File details

Details for the file mlinsights-0.3.549-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: mlinsights-0.3.549-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 478.1 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.7

File hashes

Hashes for mlinsights-0.3.549-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f1f6e769c64f34256a2caa9b563d827a4c1b6b5da228961ecad03561e5793f87
MD5 887db394780ddfb25d2db843037456df
BLAKE2b-256 8cd9a0c724370f5863bedd5a00ad33c1e169d6b0cbbbdf6d2b4e8dc149f70d57

See more details on using hashes here.

File details

Details for the file mlinsights-0.3.549-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: mlinsights-0.3.549-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 487.2 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.7

File hashes

Hashes for mlinsights-0.3.549-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 50f7bbbeb18b7ce37fc7f6986255f2c7a06606db699f281e2fb78b2da999732d
MD5 aa918c1ed63cef3ba607abda474f42c4
BLAKE2b-256 67df68161f93bdaaac6cdef61195d2f476970327c9d3d351796e877489fa881d

See more details on using hashes here.

File details

Details for the file mlinsights-0.3.549-cp37-cp37m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: mlinsights-0.3.549-cp37-cp37m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.7

File hashes

Hashes for mlinsights-0.3.549-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4bde2f6fb80ea212e900ab5dff2b7c3a31f72b13c56072b6a495f09a23e988d0
MD5 527da8cc8c77c735a656fce0d223fe18
BLAKE2b-256 a137873857591c109054628e7898cb1a2e91278b90926b6ed192f440e70317ce

See more details on using hashes here.

File details

Details for the file mlinsights-0.3.549-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: mlinsights-0.3.549-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 480.7 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.7

File hashes

Hashes for mlinsights-0.3.549-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3a2b4ab9a3ae9ce93e58c5fb3a3d0a637f4dd11307d477087bd16bc2cb6336fd
MD5 4f12b39798d7c5d610472ab40edd82cc
BLAKE2b-256 a067749a8fa8cf897038a1f2addb174cffee38f4f8b92dcf1e0bcb34e0b9d0a1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page