所以我的问题是如何将它集成到 Web,特别是 Django 站点中?我知道 PredictionIO ( http://prediction.io/ ) 包含一个 Python SDK。 Lenskit 有类似的东西吗?
我在 coursera 推荐系统类(class)中了解到 Lenskit:https://www.coursera.org/course/recsys我正在观看类(class),包括有关 Lenskit 的类(class)。我也在github上看到了文档:https://github.com/lenskit/lenskit/wiki/GettingStarted但我不清楚如何将其集成到网站中。
例如,用predictionio,有这样的例子:http://docs.prediction.io/current/tutorials/quickstart-python.html因此您可以使用 PredictionIO 作为服务。 Lenskit 有类似的东西吗?
我也看到了这个问题:How do I setup lenskit recommender toolkit to run in a website?
但是,正如我所看到的,是从 Java 调用它。
最佳答案
为了从 Python(或 PHP、Ruby)调用 LensKit,您需要将 LensKit 设置为 Web 服务,公开您的 Python 代码可以调用的 REST API。
有一个work-in-progress example web service ,但仍然需要更新到LensKit的最新版本并记录下来。因此,目前还没有一个开箱即用的解决方案可以通过 Python 使用 LensKit。
关于java - 有没有办法使用 Lenskit 作为推荐引擎并从 Django/Python 调用他?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25631218/