You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2017/05/07 19:50:04 UTC

[jira] [Assigned] (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 ]

Apache Spark reassigned SPARK-20631:
------------------------------------

    Assignee: Apache Spark

> 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: Apache Spark
>            Priority: Minor
>
> {{_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