How do I setup lenskit recommender toolkit to run in a website?

拈花ヽ惹草 提交于 2019-12-25 02:28:57

问题


I'm using lenskit recommender toolkit in Netbeans 7.4 to build a movie recommendation engine and now I'm finalizing it. So my question is how will I be able to integrate it into Web to build a Movie Recommendation Website?
I've already visit the GitHub getting started site for lenskit here and I've found the keyword web integration, click that but nothing helped me.
Sorry for the vague question but can you help me or give some advice on how to start? Thank you!


回答1:


There are two main things you need to do:

  1. Create a RecommenderEngine containing your model, configuration, etc. This will be a global object shared between all web requests. You can also build it in a separate program, serialize it to disk, and read it back in.
  2. In each web request, use the createRecommender() method to get a Recommender for that request to use.

You'll need to handle data access; there is some documentation on that here: https://github.com/grouplens/lenskit/wiki/DataAccess

LensKit 2.0 was a bit weak on web integration; LensKit 2.1 makes it significantly easier. Look for a 2.1 milestone release very soon.



来源:https://stackoverflow.com/questions/20994926/how-do-i-setup-lenskit-recommender-toolkit-to-run-in-a-website

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!