Git Product home page Git Product logo

zeon-x / id3-simple-decision-tree-learning-algorithm Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 52 KB

This repository contains a simple implementation of the ID3 decision tree learning algorithm in Python. The ID3 algorithm is a popular machine learning algorithm used for building decision trees based on given data.

Python 100.00%
decision decision-tree id3-algorithm id3-decision-tree maching-learning-models python

id3-simple-decision-tree-learning-algorithm's Introduction

ID3 Simple Decision Tree Learning Algorithm

This repository contains a simple implementation of the ID3 decision tree learning algorithm in Python. The ID3 algorithm is a popular machine learning algorithm used for building decision trees based on given data.

Contents

  1. ID3_Tree.py: Python script that builds the decision tree using the ID3 algorithm.

Decision Tree

  1. ID3_Prediction.py: Python script for making predictions using the decision tree constructed by ID3_Tree.py.

How to Use

To build a decision tree using the ID3 algorithm, you can run ID3_Tree.py. It will take your dataset and generate a decision tree based on the provided data.

To make predictions using the decision tree, you can use ID3_Prediction.py. Provide the input data, and it will predict the outcome based on the constructed decision tree.

Algorithm Overview

ID3 (Iterative Dichotomiser 3) is a classic machine learning algorithm used for constructing decision trees. It works by selecting the best attribute to split the dataset at each step, based on information gain or entropy. The algorithm recursively creates branches in the tree until it reaches a leaf node that provides a classification or prediction.

This repository offers a basic implementation of the ID3 algorithm, which can be extended and customized for specific use cases.

License

This project is licensed under the MIT License - see the LICENSE file for details.

id3-simple-decision-tree-learning-algorithm's People

Contributors

zeon-x 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.