如何设置lenskit推荐工具在网站上运行? [英] How do I setup lenskit recommender toolkit to run in a website?

查看:99
本文介绍了如何设置lenskit推荐工具在网站上运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Netbeans 7.4中的lenskit推荐器工具包来构建电影推荐引擎,现在我将其完成.所以我的问题是我如何将其集成到Web中以建立电影推荐网站?
我已经在此处访问了GitHub的GitHub入门网站,并找到了关键字网络集成,请点击该按钮,但无济于事.
很抱歉这个模糊的问题,但是您可以帮助我或就如何开始提供一些建议吗?谢谢!

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. 创建一个包含模型,配置等的RecommenderEngine.这将是所有Web请求之间共享的全局对象.您也可以将其构建在单独的程序中,将其序列化到磁盘,然后读回.
  2. 在每个Web请求中,使用createRecommender()方法获取供该请求使用的Recommender.
  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.

您需要处理数据访问;此处有一些文档: https://github.com/grouplens/lenskit/wiki/DataAccess

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

LensKit 2.0在Web集成方面有些薄弱; LensKit 2.1使它变得更加容易.很快就会找到2.1里程碑版本.

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.

这篇关于如何设置lenskit推荐工具在网站上运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆