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 2015/03/20 07:30:41 UTC

[jira] [Commented] (SPARK-6421) _regression_train_wrapper does not test initialWeights correctly

    [ https://issues.apache.org/jira/browse/SPARK-6421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14370836#comment-14370836 ] 

Apache Spark commented on SPARK-6421:
-------------------------------------

User 'Lewuathe' has created a pull request for this issue:
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
>
> 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