headzoo / prediction-io
Endroid PredictionIO 客户端
1.1.3
2014-09-30 22:21 UTC
Requires
- php: >=5.3.0
- predictionio/predictionio: 0.7.1
This package is not auto-updated.
Last update: 2024-09-24 15:39:00 UTC
README
由 endroid 提供
Endroid PredictionIO 库提供了一个客户端,该客户端提供对 PredictionIO 推荐引擎的简单访问。PredictionIO 是一个开源的机器学习服务器,用于软件开发者创建预测功能,如个性化、推荐和内容发现。
通过一组简单的调用,将所有服务器功能暴露给您的应用程序。您可以为用户和项目添加,在这些用户和项目之间注册操作,并从任何 PredictionIO
推荐引擎检索由此信息推导出的推荐。应用范围从在网店中显示推荐产品到在社交协作网络中发现相关专家。
要求
- Symfony
- 依赖关系
PredictionIO-PHP-SDK
用法
<?php $client = new Endroid\PredictionIO\PredictionIO($appKey, $apiUrl); // populate with users, items and actions $client->createUser($userId); $client->createItem($itemId); $client->recordAction($userId, $itemId, 'view'); // get recommendations and similar items $recommendations = $client->getRecommendations($userId, $engine, $count); $similarItems = $client->getSimilarItems($itemId, $engine, $count);
Vagrant 虚拟机
PredictionIO 提供了一个包含开箱即用的 PredictionIO 服务器的 Vagrant 虚拟机
。
Symfony
您可以使用 EndroidPredictionIOBundle
在您的 Symfony 应用程序中启用此服务。
许可证
此软件包在 MIT 许可证下。有关完整的版权和许可信息,请查看与源代码一起分发的 LICENSE 文件。