rumale 0.12.4 → 0.12.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fd6aef33fee80a240c1cad6a61189f9cb3a93034
4
- data.tar.gz: 166db39ecff891c22648998d0524fee38b1fb906
3
+ metadata.gz: 6e66626936daf06e8a4a8ce46aea1d58b309d884
4
+ data.tar.gz: 7332f667b41551e6b22597b5bd7beb2798c7537d
5
5
  SHA512:
6
- metadata.gz: a9ef86ae0e3c7f9477bbf4efd3feb05e0fa67bdddb3b6cb15bd9b6ae54aece4c9507156e228736cee0727a0377b934cd6f5a15597064df9a129938da91423316
7
- data.tar.gz: 89f0bec8f13f504bc1620c13af6ae1e40475d2b1c1addf026f7510c33711401f7ab721d564b1bd9c7755a20c240bba0881473b20e13875c4f0eb45904dc572f0
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
  [![Coverage Status](https://coveralls.io/repos/github/yoshoku/rumale/badge.svg?branch=master)](https://coveralls.io/github/yoshoku/rumale?branch=master)
7
7
  [![Gem Version](https://badge.fury.io/rb/rumale.svg)](https://badge.fury.io/rb/rumale)
8
8
  [![BSD 2-Clause License](https://img.shields.io/badge/License-BSD%202--Clause-orange.svg)](https://github.com/yoshoku/rumale/blob/master/LICENSE.txt)
9
- [![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](https://www.rubydoc.info/gems/rumale/0.12.4)
9
+ [![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](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: @rng.rand(Rumale::Values.int_max)
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: @rng.rand(Rumale::Values.int_max)
220
+ max_features: @params[:max_features], random_seed: sub_rng.rand(Rumale::Values.int_max)
221
221
  )
222
222
  end
223
223
 
@@ -3,5 +3,5 @@
3
3
  # Rumale is a machine learning library in Ruby.
4
4
  module Rumale
5
5
  # The version of Rumale you are using.
6
- VERSION = '0.12.4'
6
+ VERSION = '0.12.5'
7
7
  end
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
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-06-29 00:00:00.000000000 Z
11
+ date: 2019-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: numo-narray