Constructing decision trees with genetic algorithm with a scikit-learn inspired API
Project description
Genetic Tree
The main objective of the package is to allow creating decision trees that are better in some aspects than trees made by greedy algorithms.
The creation of trees is made by genetic algorithm. In order to achive as fast as possible evolution of trees the most time consuming components are wrtitten in Cython. Also there are implemented mechanisms for using old trees to create new ones without need to classify all observations from beggining (currently in developmnet). There is planned to allow multithreading evolution.
The created trees should have smaller sizes with comparable accuracy to the trees made by greedy algorithms.
Project is currently in development (before first version). The first working official version should be developed in the January 2021 (with documentation and installation by pip).
License
High-level interface of package is inspired by sklearn (https://github.com/scikit-learn/scikit-learn). Especially there are methods like: fit(), predict(), predict_proba(), apply(), set_params(), check_X(), check_input() which are inspired and / or copied from sklearn.
A low-level interface is inspired by sklearn decision_tree. The structure of tree (tree/tree.pyx) and some utils (tree/_utils.pyx) were copied from sklearn tree (https://github.com/scikit-learn/scikit-learn/tree/master/sklearn/tree).
Project details
Release history Release notifications | RSS feed
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 genetic_tree-0.1.0-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3d09eb0d1d6ed61a6a88567f20aa4f43f48580fe9026841e066ea66f046e65f |
|
MD5 | 4c1756806134f4cf2473c49c31884f1e |
|
BLAKE2b-256 | c24b2664f53973a5c90d3598b2ad39fe5641fae4ddf948b3ce7cbce8b127a97a |