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:

  1. Sending Event Data to the Event Server endpoint.
  2. 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:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset