-
The project uses Python 3.11.
-
Create a virtual environment by running the following command in the terminal:
python3 -m venv venv
Then, activate the virtual environment:
source venv/bin/activate
-
Install the necessary packages by running the following commands:
pip install numpy pip install pandas pip install matplotlib pip install scikit-learn
-
Ensure you have the wine dataset in the project folder, under the "data" directory. The file should be named "... .csv". Ops! Make sure to change filename also in main.ipynb!
The project folder contains the following files and their purposes:
-
Node.py
: This is a class representing nodes in the decision tree. -
DecisionTree.py
: This is a Python class that contains the implementation of the decision tree, including training and prediction. -
main.ipynb
: This is the main program to be executed. Here you will find code for evaluation, testing, and generating final results based on the selected models. To generate final results, install all the necessary packages and run main.ipynb by choosing "Run All" after opening the project file.
- The project's report is located in the "report" directory within the project folder. This directory contains the report and related files. The report should not be run as part of the project, but it provides a deeper understanding of the project's methods and results.