Attention, this task can be solved in two ways!
Choose wisely!
Apply an appropriate train-test-validation split to your data!
Make sure to visualize the decision tree properly!
And you
can use the
mouse dataset again
Create a basic KNIME workflow to train a decision tree.
Extend your workflow to quantify the quality of the model
Extend your KNIME workflow to create a confusion matrix and measure accuracy of the model.
First, create a basic script for training a decision tree.
Again, you can use the programming language of your choice.
A solution will be provided in R.
train) does use ? to access its
documentation (i.e. ?train)Now, extend your script to measure model quality
If you’re really quick, try training a gradient boosting machine, or use a different dataset.