O'Reilly logo

Building a Recommendation Engine with Scala by Saleem Ansari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Unified recommender

Now let's create a unified recommender using the template provided by PredictionIO project.

$ mkdir ~/tmp
$ cd ~/tmp
$ pio template get PredictionIO/template-scala-parallel-universal-recommendation urec-app
Please enter the template's Scala package name (e.g. com.mycompany): com.example.urec
Author's name:    My Name
Author's e-mail:   MyEmail.Example@gmail.com
Author's organization: com.example.urec
... OUTPUT SKIPPED ... 
Engine template PredictionIO/template-scala-parallel-universal-recommendation is now ready at urec-app

Create a Git repository for the app we just created. This will help us track our local changes:

$ cd urec-app
$ git init .
$ git add .

Update the appName in engine.json to urec-app as shown in the following ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required