上QQ阅读APP看书,第一时间看更新
Integration with web/mobile applications
To integrate with PredictionIO, there are various SDKs provided. SDKs can be downloaded from the git repository. The URL to find SDK is https://predictionio.incubator.apache.org/appintegration/. For one of our examples, we will use the PredictionIO Java SDK (https://github.com/apache/incubator-predictionio-sdk-java) to demonstrate how we can make a REST call to the Event Server and Prediction Server to get the predictive result.
The integration involves two major steps, which are as follows:
- Sending Event Data to the Event Server endpoint.
- Submitting a Query to the model and the model responding with Predictive Result data.
The following diagram from PredictionIO (credit to the PredictionIO team for putting this together) demonstrates how one can integrate with the applications: