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

Xiangrui Meng resolved SPARK-6421.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.3.1

Issue resolved by pull request 5101
[https://github.com/apache/spark/pull/5101]

> _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.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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to