mirror of
https://github.com/Doctorado-ML/FImdlp.git
synced 2025-08-16 16:05:52 +00:00
a7098a907e4c27ebb42b613fa7ad1aceca00d124
Add hyperparameters to discretized Hyperparameters added: - min_length: int, default=3: The minimum length of an interval to be considered to be discretized. - max_depth: int, default=1e6: The maximum depth of the discretization process. - max_cuts: float, default=0: The maximum number of cut points to be computed for each feature. Compute all cutpoints and select the ones that produce less entropy
FImdlp
Discretization algorithm based on the paper by Usama M. Fayyad and Keki B. Irani
Multi-Interval Discretization of Continuous-Valued Attributes for Classification Learning. In Proceedings of the 13th International Joint Conference on Artificial Intelligence (IJCAI-95), pages 1022-1027, Montreal, Canada, August 1995.
Installation
git clone --recurse-submodules https://github.com/doctorado-ml/FImdlp.git
Build and usage sample
Python sample
pip install -e .
python samples/sample.py iris
python samples/sample.py iris -c 2
python samples/sample.py -h # for more options
C++ sample
cd samples
cmake -B build
cd build
make
./sample -f iris -c 2
./sample -h
Based on
Languages
Python
72%
C++
14.2%
Cython
8.1%
Makefile
5.7%