spark-issues mailing list archives

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


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

> Make inpurityStats publicly accessible in ml.tree.Node
> ------------------------------------------------------
>                 Key: SPARK-23824
>                 URL:
>             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
package in my own repository, but I would really like to not have to do that.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message