Skip to main content

Desicion Tree Algorithms

Project description

Decision Tree algorithms

Implementation of Decision tree algorithms

Installation

Run the following command to install:

    pip install decisiontreeAlgorithms

Useage

from ID3Algorithm import ID3
# object of the ID3 class can be created in 2 way
# 1. By passing both the train and test csv file
# 2. By passing a lists of data_train, data_test, features_train, features_test
id3_1 = ID3("PATH to TRAIN csv","PATH to TEST csv")
id3_1.build_tree()
id3_1.classify()

id3_2 = ID3(dataset_train,dataset_test,headers_train,headers_test)
id3_2.build_tree()
id3_2.classify()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

decision-tree-ID3-Algorithm-0.0.1.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page