Check here for a presentation on the algorithm and the relevant info.
This example uses the tennis dataset, which can be downloaded here. Save the dataset in a folder and let’s start coding.
Click here to download the solution to this example problem.
The dataset of this example can be downloaded here. Save the dataset in a folder and let’s start coding.
Click here to download the solution to this example problem.
Can we perform the same analysis for the iris dataset?
The iris dataset can be loaded as a pandas dataframe using the commands
iris = datasets.load_iris()
data = pd.DataFrame(data=np.c_[iris['data'], iris['target']], columns=iris['feature_names'] + ['target'])
To make the problem harder, use only the first two columns of the dataset. Try this before you check the solution (here).