This is used for creating multi-split entropy based ID3Trees.
Project description
# Id3trees
This is a python package that provides the ID3 Decision tree for
classifying and predicting data.
After installing the package in order to use it in the code, Please do
the following.
```python
from Id3trees import tree
# train_data : A ``pandas`` DataFrame training data on which the ID3 tree
# classification needs to be done
# train_data_class : A ``pandas`` DataFrame consisting of a 1D series of
# training class data
tree = tree.MyDecisionTreeClassifier()
tree.fit(train_data, train_data_class)
# test_data : A ``pandas`` DataFrame containing the testing data
# returns : An array of predicted class for the given
tree.predict(test_data)
# print the tree after fitting the value
tree.print()
```
This is a python package that provides the ID3 Decision tree for
classifying and predicting data.
After installing the package in order to use it in the code, Please do
the following.
```python
from Id3trees import tree
# train_data : A ``pandas`` DataFrame training data on which the ID3 tree
# classification needs to be done
# train_data_class : A ``pandas`` DataFrame consisting of a 1D series of
# training class data
tree = tree.MyDecisionTreeClassifier()
tree.fit(train_data, train_data_class)
# test_data : A ``pandas`` DataFrame containing the testing data
# returns : An array of predicted class for the given
tree.predict(test_data)
# print the tree after fitting the value
tree.print()
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
id3tree-0.0.4.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for id3tree-0.0.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f19e9b8614f38dfa3664d1850a2a8874c5cc3796dbc3a2bacdd1ce7835fd921f |
|
MD5 | f1516a72840e5e6e7c1437d44dc9019f |
|
BLAKE2b-256 | f95a587a3d91e4ab61aab3e4d3bd03e8e85cebf5319ec575730f1ccc37ee0ca2 |