blob: bfecacc668cb377b0cf3ded81f82caf31ccfe1ed [file] [log] [blame]
package org.template.vanilla
import org.apache.predictionio.controller.IEngineFactory
import org.apache.predictionio.controller.Engine
case class Query(q: String) extends Serializable
case class PredictedResult(p: String) extends Serializable
object VanillaEngine extends IEngineFactory {
def apply() = {
new Engine(
classOf[DataSource],
classOf[Preparator],
Map("algo" -> classOf[Algorithm]),
classOf[Serving])
}
}