This is based on Recommendation Template v0.14.0.
Please refer to http://predictionio.apache.org/templates/recommendation/how-to/