上QQ阅读APP看书,第一时间看更新
PredictionIO DASE components and customization of Engine
The engine code base is based on the DASE model. DASE is abbreviated as follows:
D: Data Source and Data Preparator
A: Algorithm
S: Serving
E: Evaluation Metric
The following table describes the function of each of the components and the associated Java classes for the Product Recommendation Engine:
The following diagram shows how the components documented in the table work together:
Let's dive deep into the code and check how one can customize the engine logic.
The PredictionIO engine is built in Scala and all the APIs are documented at https://predictionio.incubator.apache.org/api/current/#org.apache.predictionio.controller.package.
We have purposefully chosen both Java-based and Scala-based template engine code so that readers familiar with the simple object oriented language like Java or familiar with Scala can understand easily.