2017 © Pedro Peláez
 

library prediction-io

Laravel PredictionIO Client

image

bratao/prediction-io

Laravel PredictionIO Client

  • Friday, September 26, 2014
  • by bratao
  • Repository
  • 2 Watchers
  • 23 Stars
  • 194 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 8 Forks
  • 0 Open issues
  • 8 Versions
  • 6 % Grown

The README.md

Laravel PredictionIO

Based on endroid, (*1)

The Laravel PredictionIO library provides a client which offers easy access to a PredictionIO recommendation engine. PredictionIO is an open source machine learning server for software developers to create predictive features, such as personalization, recommendation and content discovery., (*2)

Through a small set of simple calls, all server functionality is exposed to your application. You can add users and items, register actions between these users and items and retrieve recommendations deduced from this information by any PredictionIO recommendation engine. Applications range from showing recommended products in a web shop to discovering relevant experts in a social collaboration network., (*3)

Installation

  • Install library and dependencies:
$ composer require "bratao/prediction-io:1.*@dev"
  • Add a provider in app/config/app.php:
    'Bratao\PredictionIO\PredictionServiceProvider'
  • Add an alias in app/config/app.php:
    'Prediction'      => 'Bratao\PredictionIO\Facade',
    'predictionio' => array(
        'api' => 'http://localhost:8000/',
        'key' => '0250b3f85ce33284f77c77f36b41010ef2c4fc5c',
    ),

Usage

<?php

// populate with users, items and actions
Prediction::createUser($userId);
Prediction::createItem($itemId);
Prediction::recordAction($userId, $itemId, 'view');

//Get a User or a Item
$item = Prediction::getUser($userId);
$user = Prediction::getItem($itemId);

//Delete a user or a item
Prediction::deleteUser($userId);
Prediction::deleteItem($itemId);

// get recommendations and similar items
$recommendations = Prediction::getRecommendations($userId, $engine, $count);
$similarItems = Prediction::getSimilarItems($itemId, $engine, $count);

License

This bundle is under the MIT license. For the full copyright and license information, please view the LICENSE file that was distributed with this source code., (*4)

Thanks to

  • Braunson Yager
  • Laurent Goussard

The Versions

26/09 2014

dev-master

9999999-dev https://github.com/bratao/PredictionIO

Laravel PredictionIO Client

  Sources   Download

MIT

The Requires

 

laravel io predictionio prediction bratao

16/09 2014

1.0.6

1.0.6.0 https://github.com/bratao/PredictionIO

Laravel PredictionIO Client

  Sources   Download

MIT

The Requires

 

laravel io predictionio prediction bratao

03/07 2014

1.0.5

1.0.5.0 https://github.com/bratao/PredictionIO

Laravel PredictionIO Client

  Sources   Download

MIT

The Requires

 

laravel io predictionio prediction bratao

06/06 2014

1.0.4

1.0.4.0 https://github.com/bratao/PredictionIO

Laravel PredictionIO Client

  Sources   Download

MIT

The Requires

 

laravel io predictionio prediction bratao

18/12 2013

1.0.3

1.0.3.0 https://github.com/endroid/PredictionIO

Endroid PredictionIO Client

  Sources   Download

MIT

The Requires

 

endroid io predictionio prediction

24/10 2013

1.0.2

1.0.2.0 https://github.com/endroid/PredictionIO

Endroid PredictionIO Client

  Sources   Download

MIT

The Requires

 

endroid io predictionio prediction

22/10 2013

1.0.1

1.0.1.0 https://github.com/endroid/PredictionIO

Endroid PredictionIO Client

  Sources   Download

MIT

The Requires

 

endroid io predictionio prediction

22/10 2013

1.0.0

1.0.0.0 https://github.com/endroid/PredictionIO

Endroid PredictionIO Client

  Sources   Download

MIT

The Requires

 

endroid io predictionio prediction