git clone git@github.com:MarcusBluestone/Foulball_DecisionTree.git
conda env create --name foulball -f environment.yml
conda activate foulball
- Ignore the
playgroundandscraperfolders; they are irrelevant - Go into
src/mainand change thedata_pathvariable to the filepath location of your data. - Updated the
feature_typesandoutput_colvariables to match precisely the relevant columns in your data (note:feature_typesis a dictionary mapping column_name -> 'num'/'one-hot'/'ord')
You can change the parameters in src/main (max_depth, top_k, random_state, test_size) however you'd like.
Run the code python -m src.main
It will output test accuracy, and a legible version of the Tree Classifier