Watch the following videos:
These videos will prepare you for Monday's class activity.
In addition, implement the following in your code from Class Activity 16: Decision tree implementation:
- the saveModel() function in decision-tree.py / DecisionTree.java
- the loadModel() function in decision-tree.py / DecisionTree.java
I have not given you the pseudo code for these, nor have I specified the format you should you. I want you to think about how to serialize (i.e., save) a tree in a way that makes de-serializing (i.e., loading) relatively simple. You may use whatever resources you want, but I think it's a beneficial exercise to think about it on your own or with a partner.
Do not spend more than 2 hours on the programming. Submit the files you have modified by that point.