All Projects → apache → predictionio-sdk-php

apache / predictionio-sdk-php

Licence: Apache-2.0 license
PredictionIO PHP SDK

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to predictionio-sdk-php

predictionio-template-java-ecom-recommender
PredictionIO E-Commerce Recommendation Engine Template (Java-based parallelized engine)
Stars: ✭ 36 (-86.62%)
Mutual labels:  big-data, predictionio
predictionio
PredictionIO, a machine learning server for developers and ML engineers.
Stars: ✭ 12,510 (+4550.56%)
Mutual labels:  big-data, predictionio
predictionio-template-similar-product
PredictionIO Similar Product Engine Template (Scala-based parallelized engine)
Stars: ✭ 50 (-81.41%)
Mutual labels:  big-data, predictionio
predictionio-sdk-java
PredictionIO Java SDK
Stars: ✭ 107 (-60.22%)
Mutual labels:  big-data, predictionio
predictionio-sdk-ruby
PredictionIO Ruby SDK
Stars: ✭ 192 (-28.62%)
Mutual labels:  big-data, predictionio
Attic Predictionio
PredictionIO, a machine learning server for developers and ML engineers.
Stars: ✭ 12,522 (+4555.02%)
Mutual labels:  big-data, predictionio
predictionio-template-attribute-based-classifier
PredictionIO Classification Engine Template (Scala-based parallelized engine)
Stars: ✭ 38 (-85.87%)
Mutual labels:  big-data, predictionio
predictionio-template-recommender
PredictionIO Recommendation Engine Template (Scala-based parallelized engine)
Stars: ✭ 80 (-70.26%)
Mutual labels:  big-data, predictionio
predictionio-sdk-python
PredictionIO Python SDK
Stars: ✭ 199 (-26.02%)
Mutual labels:  big-data, predictionio
predictionio-template-ecom-recommender
PredictionIO E-Commerce Recommendation Engine Template (Scala-based parallelized engine)
Stars: ✭ 73 (-72.86%)
Mutual labels:  big-data, predictionio
Movies-Analytics-in-Spark-and-Scala
Data cleaning, pre-processing, and Analytics on a million movies using Spark and Scala.
Stars: ✭ 47 (-82.53%)
Mutual labels:  big-data
Big-Data-Demo
基于Vue、three.js、echarts,数据可视化展示项目,包含三维模型导入交互、三维模型标注等功能
Stars: ✭ 146 (-45.72%)
Mutual labels:  big-data
opendc
Collaborative Datacenter Simulation and Exploration for Everybody
Stars: ✭ 40 (-85.13%)
Mutual labels:  big-data
couchdb-couch-plugins
Mirror of Apache CouchDB
Stars: ✭ 14 (-94.8%)
Mutual labels:  big-data
talaria
TalariaDB is a distributed, highly available, and low latency time-series database for Presto
Stars: ✭ 148 (-44.98%)
Mutual labels:  big-data
classifai
🔥 One of the most comprehensive open-source data annotation platform.
Stars: ✭ 99 (-63.2%)
Mutual labels:  big-data
meetups-archivos
Ppts, códigos y videos de las meetups, data science days, videollamadas y workshops. Data Science Research es una organización sin fines de lucro que busca difundir, descentralizar y difundir los conocimientos en Ciencia de Datos e Inteligencia Artificial en el Perú, dando oportunidades a nuevos talentos mediante MeetUps, Workshops y Semilleros …
Stars: ✭ 60 (-77.7%)
Mutual labels:  big-data
xcast
A High-Performance Data Science Toolkit for the Earth Sciences
Stars: ✭ 28 (-89.59%)
Mutual labels:  big-data
subsemble
subsemble R package for ensemble learning on subsets of data
Stars: ✭ 40 (-85.13%)
Mutual labels:  big-data
bigquery-kafka-connect
☁️ nodejs kafka connect connector for Google BigQuery
Stars: ✭ 17 (-93.68%)
Mutual labels:  big-data

Apache PredictionIO PHP SDK

Build Status

Prerequisites

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.

  1. predictionio is available on Packagist and can be installed using Composer:

     composer require predictionio/predictionio
    
  2. 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.

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].