spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joseph K. Bradley (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SPARK-23824) Make inpurityStats publicly accessible in ml.tree.Node
Date Wed, 25 Apr 2018 21:58:00 GMT

     [ https://issues.apache.org/jira/browse/SPARK-23824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Joseph K. Bradley resolved SPARK-23824.
---------------------------------------
    Resolution: Duplicate

> Make inpurityStats publicly accessible in ml.tree.Node
> ------------------------------------------------------
>
>                 Key: SPARK-23824
>                 URL: https://issues.apache.org/jira/browse/SPARK-23824
>             Project: Spark
>          Issue Type: Wish
>          Components: ML
>    Affects Versions: 2.1.1
>            Reporter: Barry Becker
>            Priority: Minor
>
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message