spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carol McDonald <>
Subject ALS run method versus ALS train versus ALS fit and transform
Date Wed, 15 Jul 2015 20:55:00 GMT
In the Spark mllib examples MovieLensALS.scala  ALS run is used, however in
the movie recommendation with mllib tutorial ALS train is used , What is
the difference, when should you use one versus the other

    val model = new ALS()

  val model = ALS.train(training, rank, numIter, lambda)

Also in  , fit and transform is used. Which
one do you recommend using ?

    val als = new ALS()

    val model =

    val predictions = model.transform(test.toDF()).cache()

View raw message