Re: Spark 2.0 - JavaAFTSurvivalRegressionExample doesn't work

2016-07-28 Thread Bryan Cutler
That's the correct fix. I have this done along with a few other Java examples that still use the old MLlib Vectors in this PR thats waiting for review https://github.com/apache/spark/pull/14308 On Jul 28, 2016 5:14 AM, "Robert Goodman" wrote: > I changed import in the sample

Re: Spark 2.0 - JavaAFTSurvivalRegressionExample doesn't work

2016-07-28 Thread Robert Goodman
I changed import in the sample from import org.apache.spark.mllib.linalg.*; to import org.apache.spark.ml.linalg.*; and the sample now runs. Thanks Bob On Wed, Jul 27, 2016 at 1:33 PM, Robert Goodman wrote: > I tried to run the

Spark 2.0 - JavaAFTSurvivalRegressionExample doesn't work

2016-07-27 Thread Robert Goodman
I tried to run the JavaAFTSurvivalRegressionExample on Spark 2.0 and the example doesn't work. It looks like the problem is that the example is using the MLLib Vector/VectorUDT to create the DataSet which needs to be converted using MLUtils before using in the model. I haven't actually tried this