This package contains the Decition Tree algrotihm implementation.
Project description
Decision Tree algorithm from scratch
This repository contains Decision Tree implementation from scratch for classification problem.
About
This Decision Tree implementation is based on Leaf-wise algorithm.
- Supports bins hyperparameter for speeding up the algorithm.
- Supports Feature Importance calculation, which can help to understand the importance of features.
- Supports classification heuristics:
- Entropy and Information Gain,
- Gini Impurity and Gini Gain,
- Supports regression heuristics:
- MSE and MSE Gain.
Dependencies
To install all required dependencies, execute the following command:
pip install requirements.txt
Usage
To start main script, execute the following command:
python main.py [OPTIONS]
Available options
- -e, --example (required) - type of example to run. Available examples: classification.
- -c, --config (required) - path to configuration file.
Tests
Test cases are placed in tests/ folder. To run tests use pytest module with the following command:
pytest tests/
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file decision_tree_dmazilkin-0.1.0.tar.gz.
File metadata
- Download URL: decision_tree_dmazilkin-0.1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.0 CPython/3.12.4 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa152157a0820227bfa89900eae2a7b6c2f1a9ebb115dfc430d0fc017fabde15
|
|
| MD5 |
c5f8902fa13af68ac59278a5baaa92ed
|
|
| BLAKE2b-256 |
379e3066ee80830c56509630d71f2e73518b6ab7a5e5cbfc526021d90e57783c
|
File details
Details for the file decision_tree_dmazilkin-0.1.0-py3-none-any.whl.
File metadata
- Download URL: decision_tree_dmazilkin-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.0 CPython/3.12.4 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d706c9539597bc3aa02c910d8e783e0f8ed4d87601d5bd230d63b7f293c959fe
|
|
| MD5 |
99c63932e55034d6ea099a26f76361f3
|
|
| BLAKE2b-256 |
6558a64200d6d28b80bcb74c7cea9a2b0287d9e436a5bf6096c48e2a6d88b189
|