You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yanbo Liang (JIRA)" <ji...@apache.org> on 2017/05/10 09:09:04 UTC
[jira] [Resolved] (SPARK-20631)
LogisticRegression._checkThresholdConsistency should use values not Params
[ https://issues.apache.org/jira/browse/SPARK-20631?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yanbo Liang resolved SPARK-20631.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.2.0
2.1.2
2.0.3
> LogisticRegression._checkThresholdConsistency should use values not Params
> --------------------------------------------------------------------------
>
> Key: SPARK-20631
> URL: https://issues.apache.org/jira/browse/SPARK-20631
> Project: Spark
> Issue Type: Bug
> Components: ML, PySpark
> Affects Versions: 2.2.0
> Reporter: Maciej Szymkiewicz
> Assignee: Maciej Szymkiewicz
> Priority: Minor
> Fix For: 2.0.3, 2.1.2, 2.2.0
>
>
> {{_checkThresholdConsistency}} incorrectly uses {{getParam}} in attempt to access {{threshold}} and {{thresholds}} values. Furthermore it calls it with {{Param}} instead of {{str}}:
> {code}
> >>> from pyspark.ml.classification import LogisticRegression
> >>> lr = LogisticRegression(threshold=0.25, thresholds=[0.75, 0.25])
> Traceback (most recent call last):
> ...
> TypeError: getattr(): attribute name must be string
> {code}
> Finally exception message uses {{join}} without converting values to {{str}}.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org