line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# This file is auto-generated from regression.idl(0.4.5-347-g86989a6) with jenerator version 0.4.5-532-g61b108e/develop |
2
|
|
|
|
|
|
|
# *** DO NOT EDIT *** |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Jubatus::Regression::Client; |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
4861
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
39
|
|
7
|
1
|
|
|
1
|
|
7
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
27
|
|
8
|
1
|
|
|
1
|
|
5
|
use utf8; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
7
|
|
9
|
1
|
|
|
1
|
|
21
|
use autodie; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
9
|
|
10
|
1
|
|
|
1
|
|
5252
|
use AnyEvent::MPRPC; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
78
|
|
11
|
|
|
|
|
|
|
|
12
|
1
|
|
|
1
|
|
5
|
use parent 'Jubatus::Common::Client'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
8
|
|
13
|
|
|
|
|
|
|
require Jubatus::Regression::Types; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub train { |
16
|
|
|
|
|
|
|
my ($self, $train_data) = @_; |
17
|
|
|
|
|
|
|
return $self->_call("train", Jubatus::Common::TInt->new(1, 4), [$train_data], |
18
|
|
|
|
|
|
|
[Jubatus::Common::TList->new(Jubatus::Common::TUserDef->new( |
19
|
|
|
|
|
|
|
Jubatus::Regression::ScoredDatum->new()))]); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub estimate { |
23
|
|
|
|
|
|
|
my ($self, $estimate_data) = @_; |
24
|
|
|
|
|
|
|
return $self->_call("estimate", Jubatus::Common::TList->new( |
25
|
|
|
|
|
|
|
Jubatus::Common::TFloat->new()), [$estimate_data], |
26
|
|
|
|
|
|
|
[Jubatus::Common::TList->new(Jubatus::Common::TDatum->new())]); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub clear { |
30
|
|
|
|
|
|
|
my ($self) = @_; |
31
|
|
|
|
|
|
|
return $self->_call("clear", Jubatus::Common::TBool->new(), [], []); |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |
35
|
|
|
|
|
|
|
1 |
36
|
|
|
|
|
|
|
__END__ |