rumale 0.12.4 → 0.12.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/rumale/ensemble/gradient_boosting_classifier.rb +3 -3
- data/lib/rumale/ensemble/gradient_boosting_regressor.rb +3 -3
- data/lib/rumale/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e66626936daf06e8a4a8ce46aea1d58b309d884
|
4
|
+
data.tar.gz: 7332f667b41551e6b22597b5bd7beb2798c7537d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 597906ee7bfa304ea80d15e49d1ce998d4c626183b4c9d5cd0b25ea1e29165cd7c294ef60f7ad818ca7e46c35d10979f7eb59f40ea23bf3e60a4d3f1b7ef26e3
|
7
|
+
data.tar.gz: f484aa119b4da49ed1eac171eff78459025ac2647fc71f647dc032b0efe9a07e4ec42f9b9562f0d2114b0b083749e3b1747f66625d2502d8978015824b0b25a4
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
# 0.12.5
|
2
|
+
- Fix random number generator initialization on gradient boosting estimators
|
3
|
+
to obtain the same result with and without parallel option.
|
4
|
+
|
1
5
|
# 0.12.4
|
2
6
|
- Add class for multidimensional scaling.
|
3
7
|
- Fix parameter description on artificial dataset generation method.
|
data/README.md
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
[](https://coveralls.io/github/yoshoku/rumale?branch=master)
|
7
7
|
[](https://badge.fury.io/rb/rumale)
|
8
8
|
[](https://github.com/yoshoku/rumale/blob/master/LICENSE.txt)
|
9
|
-
[](https://www.rubydoc.info/gems/rumale/0.12.
|
9
|
+
[](https://www.rubydoc.info/gems/rumale/0.12.5)
|
10
10
|
|
11
11
|
Rumale (**Ru**by **ma**chine **le**arning) is a machine learning library in Ruby.
|
12
12
|
Rumale provides machine learning algorithms with interfaces similar to Scikit-Learn in Python.
|
@@ -227,7 +227,7 @@ module Rumale
|
|
227
227
|
# train tree
|
228
228
|
g = gradient(y_sub, y_pred_sub)
|
229
229
|
h = hessian(y_sub, y_pred_sub)
|
230
|
-
tree = plant_tree
|
230
|
+
tree = plant_tree(sub_rng)
|
231
231
|
tree.fit(x_sub, y_sub, g, h)
|
232
232
|
estimators.push(tree)
|
233
233
|
# update
|
@@ -253,12 +253,12 @@ module Rumale
|
|
253
253
|
abs_response * (2.0 - abs_response)
|
254
254
|
end
|
255
255
|
|
256
|
-
def plant_tree
|
256
|
+
def plant_tree(sub_rng)
|
257
257
|
Rumale::Tree::GradientTreeRegressor.new(
|
258
258
|
reg_lambda: @params[:reg_lambda], shrinkage_rate: @params[:learning_rate],
|
259
259
|
max_depth: @params[:max_depth],
|
260
260
|
max_leaf_nodes: @params[:max_leaf_nodes], min_samples_leaf: @params[:min_samples_leaf],
|
261
|
-
max_features: @params[:max_features], random_seed:
|
261
|
+
max_features: @params[:max_features], random_seed: sub_rng.rand(Rumale::Values.int_max)
|
262
262
|
)
|
263
263
|
end
|
264
264
|
|
@@ -189,7 +189,7 @@ module Rumale
|
|
189
189
|
# train tree
|
190
190
|
g = gradient(y_sub, y_pred_sub)
|
191
191
|
h = hessian(n_sub_samples)
|
192
|
-
tree = plant_tree
|
192
|
+
tree = plant_tree(sub_rng)
|
193
193
|
tree.fit(x_sub, y_sub, g, h)
|
194
194
|
estimators.push(tree)
|
195
195
|
# update
|
@@ -212,12 +212,12 @@ module Rumale
|
|
212
212
|
Numo::DFloat.ones(n_samples)
|
213
213
|
end
|
214
214
|
|
215
|
-
def plant_tree
|
215
|
+
def plant_tree(sub_rng)
|
216
216
|
Rumale::Tree::GradientTreeRegressor.new(
|
217
217
|
reg_lambda: @params[:reg_lambda], shrinkage_rate: @params[:learning_rate],
|
218
218
|
max_depth: @params[:max_depth],
|
219
219
|
max_leaf_nodes: @params[:max_leaf_nodes], min_samples_leaf: @params[:min_samples_leaf],
|
220
|
-
max_features: @params[:max_features], random_seed:
|
220
|
+
max_features: @params[:max_features], random_seed: sub_rng.rand(Rumale::Values.int_max)
|
221
221
|
)
|
222
222
|
end
|
223
223
|
|
data/lib/rumale/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rumale
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yoshoku
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: numo-narray
|