The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Jubatus::Recommender::Types - Perl extension for treating a data structure to use interface of recommendation server 'jubarecommender'

SYNOPSIS

    use Jubatus::Recommender::Types;

    # If you want to any Jubatus::Recommender::* packages,
    # all one need to do is write "use Jubatus::Recommender::Types;"

DESCRIPTION

This module provide the constructors and the methods to use interface of recommendation server 'jubarecommender'.

METHODS

Jubatus::Recommender::Types will provide many packages and constructors, methods. These are used in Jubatus::Recommender::Clients.

See Jubatus::Recommender::Client for more detail.

Packages

Jubatus::Recommender::Datum

If you want to use this package, all one need to do is write "use Jubatus::Recommender::Types;"

Constructors

Jubatus::Recommender::Datum->new($string_values, $num_values);

Input:

    - $string_values is a array reference which are allowed to locate many array
      references. Each of located arrry references should have two string
      value which are called "key" and "value".

    - $num_values is a array reference which are allowed to locate many array
      references. Each of located arrry references should have two values.
      First string value which are called "key" and second float value which
      are called "value".

Output:

    - Jubatus::Recommender::Datum object.

      This object have two fields.
      'string_values' field locate the array reference which was inputed as
      $string_values in constructor.
      'num_values' field locate the array reference which was inputed as
      $num_values in constructor.

Functions

to_msgpack->()

Input:

    - None

Output:

    - A array reference

      This array reference locate $string_values and $num_values which are given
      in constructor.

      This array reference certainly locate two array references. First
      reference are allowed to locate many array references. Each of located
      arrry references should have two string value which are called "key"
      and "value". Second reference are allowed to locate many array references.
      Each of located arrry references should have two values. First string
      value which are called "key" and second float value which are called
      "value".

from_msgpack->($return_value_from_msgpack)

Input:

    - $return_value_from_msgpack is a array reference.

      This array reference certainly locate two array references. First
      reference are allowed to locate many array references. Each of located
      arrry references should have two string value which are called "key"
      and "value". Second reference are allowed to locate many array references.
      Each of located arrry references should have two values. First string
      value which are called "key" and second float value which are called
      "value".

Output:

    - Jubatus::Recommender::Datum object.

Jubatus::Recommender::SimilarResult

If you want to use this package, all one need to do is write "use Jubatus::Recommender::Types;"

Functions

from_msgpack->($return_value_from_msgpack)

Input:

    - $return_value_from_msgpack is a array reference.

      This array reference certainly locate one of array reference. This
      reference are allowed to locate many array references. Each of located
      arrry references should have more than two values. First is string
      value which are called "id" and second is float value which are called
     "score".

Output:

    - A Array reference

      This array reference certainly locate one of array reference. This
      reference are allowed to locate many array references. Each of located
      arrry references should have two values. First is string value which
      are called "id" and second is float value which are called "score".

SEE ALSO

Jubatus::Recommender::Client

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.

The licence of Jubatus is LGPL 2.1.

    Jubatus: Online machine learning framework for distributed environment
    Copyright (C) 2011,2012 Preferred Infrastructure and Nippon Telegraph and Telephone Corporation.

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License version 2.1 as published by the Free Software Foundation.

However Jubatus.pm and Jubatus::*.pm is the pure Perl modules. Therefor the licence of Jubatus.pm and Jubatus::*.pm is the Perl's licence.

AUTHOR

Toshinori Sato (@overlast) <overlasting@gmail.com>