You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Chris Papadopoulos (JIRA)" <ji...@apache.org> on 2016/02/25 20:15:18 UTC
[jira] [Created] (SPARK-13497) PMML export for logistic regression
does not conform to the PMML standard
Chris Papadopoulos created SPARK-13497:
------------------------------------------
Summary: 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
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
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org