I have made a decision tree using sklearn, here, under the SciKit learn DL package, viz. `sklearn.tree.DecisionTreeClassifier().fit(x,y)`

.

How do I get the gini indices for all possible nodes at each step? `graphviz`

only gives me the gini index of the node with the lowest gini index, ie the node used for split.

For example, the image below (from `graphviz`

) tells me the gini score of the Pclass_lowVMid right index which is 0.408, but not the gini index of the Pclass_lower or Sex_male at that step. I just know the Gini index of Pclass_lower and Sex_male must be greater than (0.408*0.7 + 0) but that's it.