NAME

Jubatus - Perl extension for interfacing with Jubatus, a distributed processing framework and streaming machine learning library.

SYNOPSIS

use Jubatus;

# you can use recommender or regression, classifier, stat, graph, anomaly,
# nearestneighbor, clustering
my $client_type = "stat";

# distributed environment user must define cluster name of Jubatus/Zookeeper
my $name = "jubatus_perl_doc";

# hostname or ip address of master node
my $host = "localhost";

# port number of your juba* process
my $port = 13714; # meanless

# default parameter of Jubatus.pm is 10 seconds
my $timeout = 15;

# get Jubatus::Stat::Client object
my $graph_client = Jubatus->get_client(
   $client_type, $host, $port, $name, $timeout
);

# In the following example, get maximum value from sample array using
# Jubatus::Stat::Client object
my @sample = (1.0, 2.0, 3.0, 4.0, 5.0);
my $key = "sum";
foreach my $val (@sample) {
    my $is_push = $stat_client->push($key, $val);
}

my $result = $stat_client->sum($key);
# $result is 15.0

DESCRIPTION

This module provide a interface of Jubatus by TCP-based MessagePack RPC protocol using AnyEvent::MPRPC::Client Jubatus is a distributed processing framework and streaming machine learning library.

Jubatus provide you a couple of export functions that are shortcut of Jubatus::Recommender::Client and Jubatus::Regression::Client, Jubatus::Classifier::Client, Jubatus::Stat::Client, Jubatus::Graph::Client, Jubatus::Anomaly::Client, Jubatus:;NearestNeighbor::Client, Jubatus:;Clustering::Client,

One is get_client to get Client object by specifying client type. Another is get_recommender_client and get_regression_client, get_classifier_client, get_stst_client, get_graph_client, get_anomaly_client, get_nearestneighbor_client, get_clustering_client, to get a specific Client object explicitly.

METHODS

SEE ALSO

http://jubat.us/ https://github.com/jubatus

AnyEvent::MPRPC AnyEvent::MPRPC::Client http://msgpack.org/ http://wiki.msgpack.org/display/MSGPACK/RPC+specification

https://github.com/overlast/p5-Jubatus

LICENSE

Copyright (C) 2013 by Toshinori Sato (@overlast).

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Toshinori Sato (@overlast) overlasting@gmail.com