Github user jkbradley commented on a diff in the pull request:

    https://github.com/apache/spark/pull/13393#discussion_r66687946
  
    --- Diff: examples/src/main/python/ml/aft_survival_regression.py ---
    @@ -19,7 +19,7 @@
     
     # $example on$
     from pyspark.ml.regression import AFTSurvivalRegression
    -from pyspark.mllib.linalg import Vectors
    +from pyspark.ml.linalg import Vectors
    --- End diff --
    
    Does this example run for you?  It seems broken (not due to your PR 
though).  Would you mind checking to identify the last time it worked?
    
    ```
    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.'
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to