Java-friendly constructor
Java-friendly constructor
Data source class.
Preparator class.
Map of algorithm names to classes.
Serving class.
This auxiliary constructor is provided for backward compatibility.
This auxiliary constructor is provided for backward compatibility.
Data source class.
Preparator class.
Map of algorithm names to classes.
Serving class.
Map of data source names to class.
Map of preparator names to class.
Map of algorithm names to classes.
Map of serving names to class.
Map of algorithm names to classes.
:: DeveloperApi :: Override this method to further optimize the process that runs multiple evaluations (during tuning, for example).
:: DeveloperApi :: Override this method to further optimize the process that runs multiple evaluations (during tuning, for example). By default, this method calls eval for each element in the engine parameters list.
An instance of SparkContext.
A list of EngineParams for running batch evaluation.
An instance of WorkflowParams that controls the workflow.
A list of engine parameters and evaluation result (from eval) tuples.
Returns a new Engine instance, mimicking case class's copy method behavior.
Map of data source names to class.
This is implemented such that org.apache.predictionio.controller.Evaluation can use this method to generate inputs for org.apache.predictionio.controller.Metric.
This is implemented such that org.apache.predictionio.controller.Evaluation can use this method to generate inputs for org.apache.predictionio.controller.Metric.
An instance of SparkContext.
An instance of EngineParams for running a single evaluation.
An instance of WorkflowParams that controls the workflow.
A list of evaluation information and RDD of query, predicted result, and actual result tuple tuple.
:: DeveloperApi :: Implement this method to convert a JValue (read from an engine variant JSON file) to an instance of EngineParams.
:: DeveloperApi :: Implement this method to convert a JValue (read from an engine variant JSON file) to an instance of EngineParams.
Content of the engine variant JSON as JValue.
Content of the engine variant JSON as JValue.
An instance of EngineParams converted from JSON.
Map of preparator names to class.
Map of serving names to class.
Training this engine would return a list of models.
Training this engine would return a list of models.
An instance of SparkContext.
An instance of EngineParams for running a single training.
An instance of WorkflowParams that controls the workflow.
A list of models.
This class chains up the entire data process. PredictionIO uses this information to create workflows and deployments. In Scala, you should implement an object that extends the EngineFactory trait similar to the following example.
Training data class.
Evaluation info class.
Prepared data class.
Input query class.
Output prediction class.
Actual value class.
EngineFactory