Open chEbba opened 8 years ago
Model:
"recsModel": "all"
Training: https://github.com/PredictionIO/template-scala-parallel-universal-recommendation/blob/v0.2.3/src/main/scala/URAlgorithm.scala#L152-L168
popular=true
allFields
popModel
val pm = if (pms._1.nonEmpty && pms._2.nonEmpty) { val newPM = pms._1.head.fields + (backfillFieldName -> JDouble(pms._2.head)) PropertyMap(newPM, pms._1.head.firstUpdated, DateTime.now()) } else if (pms._2.nonEmpty) PropertyMap(Map(backfillFieldName -> JDouble(pms._2.head)), DateTime.now(), DateTime.now()) else PropertyMap( Map.empty[String, JValue], DateTime.now, DateTime.now) // some error????
Query:
Solution:
Model:
"recsModel": "all"
Training: https://github.com/PredictionIO/template-scala-parallel-universal-recommendation/blob/v0.2.3/src/main/scala/URAlgorithm.scala#L152-L168
"recsModel": "all"
(popular=true
) we calculate PopModelallFields
withpopModel
Query:
Solution: