You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hao Ren (JIRA)" <ji...@apache.org> on 2015/09/18 11:18:04 UTC

[jira] [Created] (SPARK-10691) Make LogisticRegressionModel's evaluate method public

Hao Ren created SPARK-10691:
-------------------------------

             Summary: Make LogisticRegressionModel's evaluate method public
                 Key: SPARK-10691
                 URL: https://issues.apache.org/jira/browse/SPARK-10691
             Project: Spark
          Issue Type: Improvement
          Components: ML
    Affects Versions: 1.5.0
            Reporter: Hao Ren


The following method in {{LogisticRegressionModel}} is marked as {{private}}, which prevents users from creating a summary on any given data set.

{code}
// TODO: decide on a good name before exposing to public API
private[classification] def evaluate(dataset: DataFrame)
: LogisticRegressionSummary = {
    new BinaryLogisticRegressionSummary(
        this.transform(dataset), 
        $(probabilityCol), 
        $(labelCol))
}
{code}

This method is definitely necessary to test model performance.
By the way, the name {{evaluate}} is already pretty good for me.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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