Skip to main content

MSI based machine learning algorithms

Project description

Documentation Status Build linux Build windows

msitrees

msitrees is a set of machine learning models based on minimum surfeit and inaccuracy decision tree algorithm. So whats cool about them? No hyperparameters to optimize for base learner. Tree is regularized internally to avoid overfitting by design. Quoting authors of the paper:

To achieve this, the algorithm must automatically understand when growing the decision tree adds needless complexity, and must measure such complexity in a way that is commensurate to some prediction quality aspect, e.g., inaccuracy. We argue that a natural way to achieve the above objectives is to define both the inaccuracy and the complexity using the concept of Kolmogorov complexity.

For convenience, msitrees comes with scikit-learn style API and can be used with sklearn functions accepting estimator object as parameter.

Installation

With pip

pip install msitrees

From source

git clone https://github.com/xadrianzetx/msitrees.git
cd msitrees
python setup.py install

Windows builds require at least MSVC2015

Quick start

from msitrees.tree import MSIDecisionTreeClassifier
from sklearn.datasets import load_iris
from sklearn.model_selection import cross_val_score

data = load_iris()
clf = MSIDecisionTreeClassifier()
cross_val_score(clf, data['data'], data['target'], cv=10)

# array([1.        , 1.        , 1.        , 0.93333333, 0.93333333,
    #    0.8       , 0.93333333, 0.86666667, 0.8       , 1.        ])

Reference documentation

API documentation is available on here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

msitrees-0.1-cp38-cp38-win_amd64.whl (110.2 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

msitrees-0.1-cp37-cp37m-win_amd64.whl (110.5 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

msitrees-0.1-cp37-cp37m-manylinux2010_x86_64.whl (2.1 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

msitrees-0.1-cp36-cp36m-win_amd64.whl (110.4 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

msitrees-0.1-cp36-cp36m-manylinux2010_x86_64.whl (2.2 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

msitrees-0.1-cp35-cp35m-win_amd64.whl (110.5 kB view hashes)

Uploaded CPython 3.5m Windows x86-64

msitrees-0.1-cp35-cp35m-manylinux2010_x86_64.whl (2.2 MB view hashes)

Uploaded CPython 3.5m manylinux: glibc 2.12+ x86-64

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