Details
-
Wish
-
Status: Resolved
-
Minor
-
Resolution: Duplicate
-
2.1.1
-
None
-
None
Description
This is minor, but it is also a very easy fix.
I would like to visualize the structure of a decision tree model, but currently the only means of obtaining the label distribution data at each node of the tree is hidden within each ml.tree.Node inside the impurityStats.
I'm pretty sure that the fix for this is as easy as removing the private[ml] qualifier from occurrences of
private[ml] def impurityStats: ImpurityCalculator
and
override private[ml] val impurityStats: ImpurityCalculator
As a workaround, I've put my class that needs access into a org.apache.spark.ml.tree package in my own repository, but I would really like to not have to do that.
Attachments
Issue Links
- duplicates
-
SPARK-14681 Provide label/impurity stats for spark.ml decision tree nodes
- Resolved