Git Product home page Git Product logo

decisiontree_py's Introduction

Overview

This repository contains two Python scripts implementing a decision tree classifier and a graphical user interface (GUI) for it.
The decision tree script (decisionTree.py) provides a custom class for training and predicting with a decision tree model using Scikit-Learn.

The GUI script (decisionTreeGUI.py) offers a user-friendly interface to interact with the decision tree, including functions to load data, train the model, predict outcomes, and visualize the decision tree.

Files

decisionTree.py:

Implements the DecisionTree class, which includes methods for data preprocessing, entropy calculation, feature splitting, model training, and prediction.

decisionTreeGUI.py:

Builds a GUI using Tkinter, integrating the DecisionTree class for data loading, model training, prediction, and tree visualization.

Dependencies

sklearn
numpy
pandas
tkinter
graphviz
matplotlib

Usage

Training and Predicting with Decision Tree:

Import DecisionTree from decisionTree.py.
Create an instance with a dataset.
Call train method to train the model.
Use predict method for predictions.

Using the GUI:

Run decisionTreeGUI.py script.
Use the GUI to load a CSV file, train the model, make predictions, and generate a PDF of the decision tree.

Features

Custom Decision Tree Implementation: Allows entropy-based feature splitting and training with Scikit-Learn's DecisionTreeClassifier.
GUI for User Interaction: Facilitates non-programmers to use the decision tree model for predictions and visualization.

decisiontree_py's People

Contributors

parhamesmaeily avatar

Stargazers

 avatar Hashem Pourallahverdi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.