I'm teaching a class on decision analysis in the fall and am looking for a python or R equivalent to Excel's Precision Tree.
What I want is for the students to be able to add the nodes of the tree, whether it is probability or decision node, label them etc. However, for all my searching, there doesn't appear to be a package/library that allows for them to import this as a csv or coded list.
Note, this is not a decision tree grown from a data set like the machine learning options that exist.
This is similar to question, but I'm wondering if there's a coding package or library rather than software package.
For example, if the students are creating a decision tree where someone is deciding whether to take an umbrella. The would provide a decision node and then probability nodes, and then the utilities of each outcome. This tree would have four branches. 1) take umbrella, rain 2) take umbrella, no rain 3) no umbrella etc.
Machine learning trees are unsuitable because they are learnt from a data set. This is not. It's the same effectively in terms of plotting, but here we have to define the tree ourselves.