spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "zhengruifeng (JIRA)" <>
Subject [jira] [Created] (SPARK-19054) Eliminate extra pass in NB
Date Tue, 03 Jan 2017 03:05:58 GMT
zhengruifeng created SPARK-19054:

             Summary: Eliminate extra pass in NB
                 Key: SPARK-19054
             Project: Spark
          Issue Type: Improvement
          Components: ML
            Reporter: zhengruifeng
            Priority: Minor

{{val numClasses = getNumClasses(dataset)}} in {{NaiveBayes}} are used to check the length
of thresholds only when {{positiveLabel && isDefined(thresholds)}} is true.
In the case that {{positiveLabel}} is true and {{isDefined(thresholds)}} is false, we don't
need to calculate {{getNumClasses}} which may cause a pass on the whole data.

This message was sent by Atlassian JIRA

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

View raw message