Skip to content

Decision Tree and Perceptron performance comparison through a small dataset

License

Notifications You must be signed in to change notification settings

SousaPedroso/DTP

Repository files navigation

DTP

Github top language Github language count Repository size License

About   |   Features   |   Requirements   |   Starting   |   License   |   Author   |   Acknowledgments


🎯 About

Proposed work on Artificial Intelligence by professor and Ph.D Claudia Martins to implement from scratch Decision Tree and Perceptron and compare the performance between those two ML algorithms through a small dataset.

Both Decision Tree and Perceptron had 100% of accuracy on training data. Modifying parameters can demonstrate different classifications on new data and due to not having the class for this data, any modification will depends on the target domain for choose which algorithm use.

✨ Features

✔️ Perceptron and Decision Tree adaptable to multiple features (considering first column as index and last one the target);
✔️ Perceptron customizable;

✅ Requirements

Before starting 🏁, you need to have a compiler which supports c++17.

🏁 Starting

# Clone this project
$ git clone https://github.com/SousaPedroso/dtp

# Access
$ cd dtp

# Compile files (Considering g++, change for your compiler)
$ g++ main.cpp Node.cpp DecisionTree.cpp Perceptron.cpp error.cpp encoder.cpp utils.cpp -o main -std=c++17

# Run the project
$ .\main

# Follow the instructions in the program

📝 License

This project is under license from MIT. For more details, see the LICENSE file.

📖 Acknowledgments

Claudia Martins Mauro de Souza  

Back to top

Releases

No releases published

Packages

No packages published

Languages