rumale 0.14.4 → 0.14.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: 94deb528b418e7c6e86c0a4b0c3969406cea827c
4
- data.tar.gz: ce85f0e6182230b9db81c4cff86685fba6220748
3
+ metadata.gz: 53beac1d67735cd6f03714c82bbd149379df845f
4
+ data.tar.gz: 303720c35bc1b14b720379abb6464812778398a2
5
5
  SHA512:
6
- metadata.gz: 00e59b4343e6f393431f5625a825c409d392d823529dbc92ebd3ded86029c7432546ccd474a9c11253dc39d489f35397c8eab46fab8be3498dbe354a2c94b7c6
7
- data.tar.gz: 166505de18d18e77eecb8b259f4dfd883fe4687c514b4586d361049d2d3977758b0c53aeea8e26c8da401ad8b3cf0000d11e21c0badc1990728777064cd2c0c7
6
+ metadata.gz: 44e7893da77fcb9bcc245d096b69553b87bb740c160f879f7a1d8f00d30f1fc39f59831b17db6ff267772634cf356bceac5c5aa9f91792f0a6998938c60e2cb3
7
+ data.tar.gz: 21b3c761487805a31fc61d3570582892d02b97c3c14c01bf0813dd9893b79797a9092f1a9c8ecc47434fbff079a495897a8bf81109e026ac0c2a212615df7831
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 0.14.5
2
+ - Fix to suppress deprecation warning about keyword argument in Ruby 2.7.
3
+
1
4
  # 0.14.4
2
5
  - Add metric parameter that specifies distance metric to
3
6
  [KNeighborsClassifier](https://yoshoku.github.io/rumale/doc/Rumale/NearestNeighbors/KNeighborsClassifier.html) and
@@ -62,7 +62,7 @@ module Rumale
62
62
  check_params_positive(max_iter: max_iter, batch_size: batch_size)
63
63
  keywd_args = method(:initialize).parameters.map { |_t, arg| [arg, binding.local_variable_get(arg)] }.to_h.merge(reg_param: 0.0)
64
64
  keywd_args.delete(:solver)
65
- super(keywd_args)
65
+ super(**keywd_args)
66
66
  @params[:solver] = solver != 'svd' ? 'sgd' : 'svd'
67
67
  end
68
68
 
@@ -63,7 +63,7 @@ module Rumale
63
63
  check_params_positive(reg_param: reg_param, max_iter: max_iter, batch_size: batch_size)
64
64
  keywd_args = method(:initialize).parameters.map { |_t, arg| [arg, binding.local_variable_get(arg)] }.to_h
65
65
  keywd_args.delete(:solver)
66
- super(keywd_args)
66
+ super(**keywd_args)
67
67
  @params[:solver] = solver != 'svd' ? 'sgd' : 'svd'
68
68
  end
69
69
 
@@ -65,7 +65,7 @@ module Rumale
65
65
  check_params_positive(reg_param: reg_param, bias_scale: bias_scale, max_iter: max_iter, batch_size: batch_size)
66
66
  keywd_args = method(:initialize).parameters.map { |_t, arg| [arg, binding.local_variable_get(arg)] }.to_h
67
67
  keywd_args.delete(:probability)
68
- super(keywd_args)
68
+ super(**keywd_args)
69
69
  @params[:probability] = probability
70
70
  @prob_param = nil
71
71
  @classes = nil
@@ -59,7 +59,7 @@ module Rumale
59
59
  max_iter: max_iter, batch_size: batch_size)
60
60
  keywd_args = method(:initialize).parameters.map { |_t, arg| [arg, binding.local_variable_get(arg)] }.to_h
61
61
  keywd_args.delete(:epsilon)
62
- super(keywd_args)
62
+ super(**keywd_args)
63
63
  @params[:epsilon] = epsilon
64
64
  end
65
65
 
@@ -60,7 +60,7 @@ module Rumale
60
60
  check_params_positive(n_factors: n_factors, reg_param_linear: reg_param_linear, reg_param_factor: reg_param_factor,
61
61
  max_iter: max_iter, batch_size: batch_size)
62
62
  keywd_args = method(:initialize).parameters.map { |_t, arg| [arg, binding.local_variable_get(arg)] }.to_h.merge(loss: nil)
63
- super(keywd_args)
63
+ super(**keywd_args)
64
64
  end
65
65
 
66
66
  # Fit the model with given training data.
@@ -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.14.4'
6
+ VERSION = '0.14.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.14.4
4
+ version: 0.14.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-12-23 00:00:00.000000000 Z
11
+ date: 2019-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: numo-narray