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 2016/06/11 16:56:21 UTC

[jira] [Commented] (SPARK-15892) aft_survival_regression.py example fails in branch-2.0

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

Apache Spark commented on SPARK-15892:
--------------------------------------

User 'HyukjinKwon' has created a pull request for this issue:
https://github.com/apache/spark/pull/13619

> aft_survival_regression.py example fails in branch-2.0
> ------------------------------------------------------
>
>                 Key: SPARK-15892
>                 URL: https://issues.apache.org/jira/browse/SPARK-15892
>             Project: Spark
>          Issue Type: Bug
>          Components: Examples, ML, PySpark
>    Affects Versions: 2.0.0
>            Reporter: Joseph K. Bradley
>
> Running the example (after the fix in [https://github.com/apache/spark/pull/13393]) causes this failure:
> {code}
> Traceback (most recent call last):                                              
>   File "/Users/josephkb/spark/examples/src/main/python/ml/aft_survival_regression.py", line 49, in <module>
>     model = aft.fit(training)
>   File "/Users/josephkb/spark/python/lib/pyspark.zip/pyspark/ml/base.py", line 64, in fit
>   File "/Users/josephkb/spark/python/lib/pyspark.zip/pyspark/ml/wrapper.py", line 213, in _fit
>   File "/Users/josephkb/spark/python/lib/pyspark.zip/pyspark/ml/wrapper.py", line 210, in _fit_java
>   File "/Users/josephkb/spark/python/lib/py4j-0.10.1-src.zip/py4j/java_gateway.py", line 933, in __call__
>   File "/Users/josephkb/spark/python/lib/pyspark.zip/pyspark/sql/utils.py", line 79, in deco
> pyspark.sql.utils.IllegalArgumentException: u'requirement failed: The number of instances should be greater than 0.0, but got 0.'
> {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