spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiangrui Meng (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-6421) _regression_train_wrapper does not test initialWeights correctly
Date Fri, 20 Mar 2015 21:19:39 GMT

     [ https://issues.apache.org/jira/browse/SPARK-6421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Xiangrui Meng updated SPARK-6421:
---------------------------------
    Fix Version/s: 1.4.0

> _regression_train_wrapper does not test initialWeights correctly
> ----------------------------------------------------------------
>
>                 Key: SPARK-6421
>                 URL: https://issues.apache.org/jira/browse/SPARK-6421
>             Project: Spark
>          Issue Type: Bug
>          Components: MLlib, PySpark
>    Affects Versions: 1.3.0
>            Reporter: Joseph K. Bradley
>            Assignee: Kai Sasaki
>             Fix For: 1.4.0, 1.3.1
>
>
> There is a bug in this line: [https://github.com/apache/spark/blob/f17d43b033d928dbc46aef8e367aa08902e698ad/python/pyspark/mllib/regression.py#L138]
> You can reproduce this bug as follows:
> {code}
> >>> from numpy import array
> >>> a = array([1,2,3])
> >>> b = a or [1.0] * 3
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ValueError: The truth value of an array with more than one element is ambiguous. Use
a.any() or a.all()
> {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


Mime
View raw message