You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiangrui Meng (JIRA)" <ji...@apache.org> on 2015/01/30 02:13:34 UTC
[jira] [Updated] (SPARK-5399) tree Losses strings should match loss
names
[ https://issues.apache.org/jira/browse/SPARK-5399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xiangrui Meng updated SPARK-5399:
---------------------------------
Assignee: Kai Sasaki
> tree Losses strings should match loss names
> -------------------------------------------
>
> Key: SPARK-5399
> URL: https://issues.apache.org/jira/browse/SPARK-5399
> Project: Spark
> Issue Type: Improvement
> Components: MLlib
> Affects Versions: 1.2.0, 1.2.1
> Reporter: Joseph K. Bradley
> Assignee: Kai Sasaki
> Priority: Minor
>
> tree.loss.Losses.fromString expects certain String names for losses. These do not match the names of the loss classes but should. I believe these strings were the original names of the losses, and we forgot to correct the strings when we renamed the losses.
> Currently:
> {code}
> case "leastSquaresError" => SquaredError
> case "leastAbsoluteError" => AbsoluteError
> case "logLoss" => LogLoss
> {code}
> Proposed:
> {code}
> case "SquaredError" => SquaredError
> case "AbsoluteError" => AbsoluteError
> case "LogLoss" => LogLoss
> {code}
--
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