apache / Attic Predictionio Sdk Php
Licence: apache-2.0
PredictionIO PHP SDK
Stars: ✭ 272
Programming Languages
scala
5932 projects
Labels
Projects that are alternatives of or similar to Attic Predictionio Sdk Php
predictionio-template-java-ecom-recommender
PredictionIO E-Commerce Recommendation Engine Template (Java-based parallelized engine)
Stars: ✭ 36 (-86.76%)
Mutual labels: big-data
mmtf-workshop-2018
Structural Bioinformatics Training Workshop & Hackathon 2018
Stars: ✭ 50 (-81.62%)
Mutual labels: big-data
predictionio-template-attribute-based-classifier
PredictionIO Classification Engine Template (Scala-based parallelized engine)
Stars: ✭ 38 (-86.03%)
Mutual labels: big-data
ibmpairs
open source tools for interaction with IBM PAIRS:
Stars: ✭ 23 (-91.54%)
Mutual labels: big-data
aut
The Archives Unleashed Toolkit is an open-source toolkit for analyzing web archives.
Stars: ✭ 111 (-59.19%)
Mutual labels: big-data
awesome-AI-kubernetes
❄️ 🐳 Awesome tools and libs for AI, Deep Learning, Machine Learning, Computer Vision, Data Science, Data Analytics and Cognitive Computing that are baked in the oven to be Native on Kubernetes and Docker with Python, R, Scala, Java, C#, Go, Julia, C++ etc
Stars: ✭ 95 (-65.07%)
Mutual labels: big-data
leaflet heatmap
简单的可视化湖州通话数据 假设数据量很大,没法用浏览器直接绘制热力图,把绘制热力图这一步骤放到线下计算分析。使用Apache Spark并行计算数据之后,再使用Apache Spark绘制热力图,然后用leafletjs加载OpenStreetMap图层和热力图图层,以达到良好的交互效果。现在使用Apache Spark实现绘制,可能是Apache Spark不擅长这方面的计算或者是我没有设计好算法,并行计算的速度比不上单机计算。Apache Spark绘制热力图和计算代码在这 https://github.com/yuanzhaokang/ParallelizeHeatmap.git .
Stars: ✭ 13 (-95.22%)
Mutual labels: big-data
AverageShiftedHistograms.jl
⚡ Lightning fast density estimation in Julia ⚡
Stars: ✭ 52 (-80.88%)
Mutual labels: big-data
bandar-log
Monitoring tool to measure flow throughput of data sources and processing components that are part of Data Ingestion and ETL pipelines.
Stars: ✭ 20 (-92.65%)
Mutual labels: big-data
alluxio-py
Alluxio Python client - Access Any Data Source with Python
Stars: ✭ 18 (-93.38%)
Mutual labels: big-data
NiFi-Rule-engine-processor
Drools processor for Apache NiFi
Stars: ✭ 34 (-87.5%)
Mutual labels: big-data
Datahub
The Metadata Platform for the Modern Data Stack
Stars: ✭ 4,232 (+1455.88%)
Mutual labels: big-data
bigstatsr
R package for statistical tools with big matrices stored on disk.
Stars: ✭ 139 (-48.9%)
Mutual labels: big-data
bigdata-fun
A complete (distributed) BigData stack, running in containers
Stars: ✭ 14 (-94.85%)
Mutual labels: big-data
Apache PredictionIO PHP SDK
Prerequisites
- PHP 5.6+ (http://php.net/)
- PHP: cURL (http://php.net/manual/en/book.curl.php)
- Phing (http://www.phing.info/)
- ApiGen (http://apigen.org/)
Note: This SDK only supports Apache PredictionIO version 0.8.2 or higher.
Getting Started
The easiest way to install PredictionIO PHP client is to use Composer.
-
predictionio
is available on Packagist and can be installed using Composer:composer require predictionio/predictionio
-
Include Composer's autoloader in your PHP code
require_once("vendor/autoload.php");
Usage
This package is a web service client based on Guzzle. A few quick examples are shown below.
Instantiate PredictionIO API Event Client
use predictionio\EventClient;
$accessKey = 'j4jIdbq59JsF2f4CXwwkIiVHNFnyNvWXqMqXxcIbQDqFRz5K0fe9e3QfqjKwvW3O';
$client = new EventClient($accessKey, 'http://localhost:7070');
Set a User Record from Your App
// assume you have a user with user ID 5
$response = $client->setUser(5);
Set an Item Record from Your App
// assume you have a book with ID 'bookId1' and we assign 1 as the type ID for book
$response = $client->setItem('bookId1', array('itypes' => 1));
Import a User Action (View) form Your App
// assume this user has viewed this book item
$client->recordUserActionOnItem('view', 5, 'bookId1');
Retrieving Prediction Result
// assume you have created an itemrank engine on localhost:8000
// we try to get ranking of 5 items (item IDs: 1, 2, 3, 4, 5) for a user (user ID 7)
$engineClient = new EngineClient('http://localhost:8000');
$response = $engineClient->sendQuery(array('uid'=>7, 'iids'=>array(1,2,3,4,5)));
print_r($response);
Bugs and Feature Requests
Use Apache JIRA to report bugs or request new features.
Community
Keep track of development and community news.
- Subscribe to the user mailing list and the dev mailing list.
- Follow @PredictionIO on Twitter.
Contributing
Read the Contribute Code page.
License
Apache PredictionIO is under Apache 2 license.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].