Skip to content

MATLAB implementation of a decision tree based on ID3 capable of binary classification and handling of continuous features

License

Notifications You must be signed in to change notification settings

manumacc/tree-classifier-matlab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tree classifier in MATLAB

Overview

MATLAB implementation of a decision tree based on ID3 capable of binary classification and handling of continuous features.

Usage

Open classifier.m, insert your training and test data, and run it. Data entry instructions are described in the script file. Datasets with both continuous and categorical features are supported.

Structure

  • classifier.m contains training and test data, as well as fit and predict function calls.

  • tree_fit.m builds a decision tree classifier from the provided training set. It returns a tree in the form of a cell array.

  • tree_predict.m predicts the classes of the test set. It returns a vector that contains the class predictions.

About

MATLAB implementation of a decision tree based on ID3 capable of binary classification and handling of continuous features

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages