simply use print(ID3(data,answer_column_name)) to print your tree.
Project description
Utilizes pandas, math, numpy and colorama. Easy textual print of the categorical-only ID3 adjusted for any number of answers and will clean data of perfectly unique columns (such as an index column). example code:
tree = ID3(df, "Purchased?") print(tree)
As of now there are four rotating colors for middle nodes (cyan magenta blue yellow) and two (red and green) for the final nodes. future release will include functions for controlling the print color scheme.
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
easyID3-0.0.6.tar.gz
(3.4 kB
view hashes)