Github user pferrel commented on a diff in the pull request:
https://github.com/apache/incubator-predictionio/pull/269#discussion_r73793199
--- Diff: data/src/main/scala/io/prediction/data/storage/Models.scala ---
@@ -78,3 +78,6 @@ class ModelSerializer extends CustomSerializer[Model](
Nil)
}
))
+
+// Use where models are saved outside the usual methods in pio
+case class NullModel()
--- End diff --
ready for review
This is to avoid using a java `null` for cases where the model is not
stored in hdfs. By using this model any template can choose to store the model
in a DB or as the Universal Recommender does, in Elasticsearch.
---
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.
---