Risk Profile Analysis¶
- class smart_choice.risk_profile.RiskProfile(decisiontree, idx=0, cumulative=False, single=True)[source]¶
Bases:
object
Plots a probability distribution of the tree results computed in a designed node.
- Parameters
tree – The decision tree to be analyzed.
idx (int) – The identification number of the tree node to be analyzed.
cumulative (bool) – When True, displays the cumulative distribution at the analized node.
single (bool) – When True, displays the value for the optimal branch in decision nodes. When False display the value for all branches of the analyzed node.
decisiontree (smart_choice.decisiontree.DecisionTree) –