jubatus 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.9.0
|
@@ -60,6 +60,20 @@ class ClassifierTest < Test::Unit::TestCase
|
|
60
60
|
result = @cli.classify(data)
|
61
61
|
end
|
62
62
|
|
63
|
+
def test_set_label
|
64
|
+
assert_equal(@cli.set_label("label"), true)
|
65
|
+
end
|
66
|
+
|
67
|
+
def test_get_label
|
68
|
+
@cli.set_label("label")
|
69
|
+
assert_equal(@cli.get_labels(), {"label" => 0})
|
70
|
+
end
|
71
|
+
|
72
|
+
def test_delete_label
|
73
|
+
@cli.set_label("label")
|
74
|
+
assert_equal(@cli.delete_label("label"), true)
|
75
|
+
end
|
76
|
+
|
63
77
|
def test_save
|
64
78
|
assert_equal(@cli.save("classifier.save_test.model").size, 1)
|
65
79
|
end
|
@@ -37,7 +37,8 @@ class ClusteringTest < Test::Unit::TestCase
|
|
37
37
|
"bicriteria_base_size" => 1,
|
38
38
|
"bucket_length" => 2,
|
39
39
|
"forgetting_factor" => 0,
|
40
|
-
"forgetting_threshold" => 0.5
|
40
|
+
"forgetting_threshold" => 0.5,
|
41
|
+
"seed" => 0,
|
41
42
|
}
|
42
43
|
}
|
43
44
|
|
@@ -84,11 +85,12 @@ class ClusteringTest < Test::Unit::TestCase
|
|
84
85
|
end
|
85
86
|
|
86
87
|
def test_get_core_members
|
87
|
-
|
88
|
-
|
88
|
+
for i in 0..99
|
89
|
+
d = Jubatus::Common::Datum.new({"nkey1" => i, "nkey2" => -i})
|
90
|
+
@cli.push([d])
|
91
|
+
end
|
89
92
|
res = @cli.get_core_members()
|
90
93
|
assert_equal(10, res.length)
|
91
|
-
assert_equal(1, res[0].length)
|
92
94
|
assert_instance_of(Jubatus::Clustering::WeightedDatum, res[0][0])
|
93
95
|
end
|
94
96
|
|
@@ -112,16 +114,6 @@ class ClusteringTest < Test::Unit::TestCase
|
|
112
114
|
assert_instance_of(Jubatus::Common::Datum, res)
|
113
115
|
end
|
114
116
|
|
115
|
-
def test_nearest_center
|
116
|
-
for i in 0..99
|
117
|
-
d = Jubatus::Common::Datum.new({"nkey1" => i, "nkey2" => -i})
|
118
|
-
@cli.push([d])
|
119
|
-
end
|
120
|
-
q = Jubatus::Common::Datum.new({"nkey1" => 2.0, "nkey2" => 1.0})
|
121
|
-
res = @cli.get_nearest_center(q)
|
122
|
-
assert_instance_of(Jubatus::Common::Datum, res)
|
123
|
-
end
|
124
|
-
|
125
117
|
def test_nearest_members
|
126
118
|
for i in 0..99
|
127
119
|
d = Jubatus::Common::Datum.new({"nkey1" => i, "nkey2" => -i})
|
data/jubatus.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |gem|
|
|
8
8
|
gem.summary = "Jubatus Ruby client"
|
9
9
|
gem.version = File.read("VERSION").strip
|
10
10
|
gem.authors = ["PFN & NTT"]
|
11
|
-
gem.email = "jubatus@googlegroups.com"
|
11
|
+
gem.email = "jubatus-team@googlegroups.com"
|
12
12
|
gem.has_rdoc = false
|
13
13
|
gem.license = "MIT"
|
14
14
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jubatus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-04-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: msgpack-rpc
|
@@ -77,7 +77,7 @@ dependencies:
|
|
77
77
|
version: '0'
|
78
78
|
description: Jubatus is a distributed processing framework and streaming machine learning
|
79
79
|
library. This is the Jubatus client in Ruby.
|
80
|
-
email: jubatus@googlegroups.com
|
80
|
+
email: jubatus-team@googlegroups.com
|
81
81
|
executables: []
|
82
82
|
extensions: []
|
83
83
|
extra_rdoc_files: []
|