So baue ich ein implizites Feedback recommender Modell Spark 1.0.0 und ich versuche, das Beispiel, das sie auf ihrer Collaborative Filtering Seite zu folgen: http://spark.apache.org/docs/latest/mllib-collaborative-filtering.html#explicit-vs-implicit-feedbackFunken MLlib - Collaborative Filtering Implicit-Feed
Und ich habe sogar der Test-Datensatz geladen, die sie im Beispiel Referenz: http://codesearch.ruethschilling.info/xref/apache-foundation/spark/mllib/data/als/test.data
jedoch bei dem Versuch, das implizite Rückkopplungsmodell auszuführen: val alpha = 0,01 val model = ALS.trainImplicit (Bewertungen, Rang, numIterations, alpha)
(die Ratings waren die Bewertungen genau aus ihren Daten-Set und rank = 10, numIterations = 20) ich die folgende Störung erhalte:
scala> val model = ALS.trainImplicit(ratings, rank, numIterations, alpha)
<console>:26: error: overloaded method value trainImplicit with alternatives:
(ratings: org.apache.spark.rdd.RDD[org.apache.spark.mllib.recommendation.Rating],rank: Int,iterations: Int)org.apache.spark.mllib.recommendation.MatrixFactorizationModel <and>
(ratings: org.apache.spark.rdd.RDD[org.apache.spark.mllib.recommendation.Rating],rank: Int,iterations: Int,lambda: Double,alpha: Double)org.apache.spark.mllib.recommendation.MatrixFactorizationModel <and>
(ratings: org.apache.spark.rdd.RDD[org.apache.spark.mllib.recommendation.Rating],rank: Int,iterations: Int,lambda: Double,blocks: Int,alpha: Double)org.apache.spark.mllib.recommendation.MatrixFactorizationModel <and>
(ratings: org.apache.spark.rdd.RDD[org.apache.spark.mllib.recommendation.Rating],rank: Int,iterations: Int,lambda: Double,blocks: Int,alpha: Double,seed: Long)org.apache.spark.mllib.recommendation.MatrixFactorizationModel
cannot be applied to (org.apache.spark.rdd.RDD[org.apache.spark.mllib.recommendation.Rating], Int, Int, Double)
val model = ALS.trainImplicit(ratings, rank, numIterations, alpha)
Interessanterweise ist dieses Modell ganz gut läuft, wenn nicht trainImplicit tun (d ALS.train)
Perfekt, scheint die 'magische Zahlen' Berechnung gut zu funktionieren! Vielen Dank für die Hilfe !! – atellez
Ja 0,01 ist ein feiner Standardwert für Lambda. –