decision-tree-classifier

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit bf5a880a25a870925fc6ce5f6446fcfbdf3284a0
parent 29450ced42ecb1bd98d0e3116f10f4e085c2fd31
Author: Andrew <andrewlaack1@gmail.com>
Date:   Mon, 30 Dec 2024 23:43:17 -0600

Added public readme

Diffstat:
MREADME.md | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md @@ -1,3 +1,9 @@ # CART Decision Tree Classifier -Sample implementation of CART decision tree classifier written in C++ with hooks into python using pybind11. +Simple implementation of CART decision tree classifier written in C++ with hooks into python using pybind11. + +Included in this repository (in the 'Old' directory) is another implementation of a decision tree classifier that uses ctypes and varies slightly in implementation. While the current version does not sort input features to do interpolation to optimize splitting, the old implementation does. This would give the old implementation nominally better prediction accuracy, but the problem with that implementation is it does not allow for utilization of parallel processing, which the current implementation does. Given this, using the old implementation is unlikely worthwhile given that exhaustive search performed by the CART algorithm, even in performant c++, is quite slow and thus parallellization is likely more valuable. + +# Usage + +To train and predict with the classifier simply clone the repository and make changes to the 'Usage.py' file as needed. The file currently shows a sample usage of the library that performs training and evaluation on MNIST dataset.