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