You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/05/21 04:22:03 UTC
[jira] [Updated] (SPARK-13497) PMML export for logistic regression
does not conform to the PMML standard
[ https://issues.apache.org/jira/browse/SPARK-13497?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon updated SPARK-13497:
---------------------------------
Labels: bulk-closed (was: )
> PMML export for logistic regression does not conform to the PMML standard
> -------------------------------------------------------------------------
>
> Key: SPARK-13497
> URL: https://issues.apache.org/jira/browse/SPARK-13497
> Project: Spark
> Issue Type: Bug
> Components: MLlib
> Affects Versions: 1.6.0
> Reporter: Chris Papadopoulos
> Priority: Minor
> Labels: bulk-closed
>
> In line 52 of spark/mllib/src/main/scala/org/apache/spark/mllib/pmml/export/PMMLModelExportFactory.scala
> the binary classification for n=2 is exported with RegressionNormalizationMethodType.LOGIT
> But, the PMML standard specifies that it should be a softmax for linear regression:
> http://dmg.org/pmml/v4-2-1/Regression.html
> Quote:
> " Note that Binary logistic regression is a special case with
> y = intercept + Sumi (coefficienti * independent variablei )
> p = 1/(1+exp(-y))
> It should be implemented as a classification model
> <RegressionModel functionName="classification" normalizationMethod="softmax" ...
> <RegressionTable targetCategory="YES" ...
> <RegressionTable targetCategory="NO" intercept="0.0"
> "
> Evaluating with the logit option leads to unexpected behavior.
--
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