rumale-kernel_approximation 0.25.0 → 0.27.0

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
  SHA256:
3
- metadata.gz: 3829d7e84c419af4b098367a96aaa502beea03169513398632dfced67c2c4909
4
- data.tar.gz: 17c5b71b02bc16e3ca24a126e3e3878f5bd33bd188fad9f331732771c58f3b1d
3
+ metadata.gz: e2a7454940f4c52deeece022f5747ffdaa492fc4d710195d5fc942a37dd0f5f9
4
+ data.tar.gz: a084f25c57a88c4bf2b79466718e8c5f01d3e869ca517e1019cc50288c0451ee
5
5
  SHA512:
6
- metadata.gz: f81077172e5656089872fe73fed55beae62fe91e0b7c9bc91956fbcc7c4d270edb41dfb65f185894f9f6f6435204a34c09d62464e557ac4283fd1f206c7195ac
7
- data.tar.gz: 7528672be128caee7bad962d2ac92e264771c76822913374319d64a991f5ac6e8b99bd578e79ad26e4298b196a1a6c89a55bf7962140ff91b2112bc399f778e8
6
+ metadata.gz: 27c5a0436028aea3095903c0b6a1983d42a9f861e2951f8471ee0778911bf0b6f4cd114ad05c94b5a51819ef2c8a3556f3b71dcbc95f675d3461dd89f8c319bc
7
+ data.tar.gz: b14ae72d88afc69189f71324c1c29f93db355cd68855b82722b84eef5b3431ee7fe033e823a229d40f775a44fc17221ca72123e558473f21ef9600015a86f8c2
@@ -71,7 +71,7 @@ module Rumale
71
71
  # initialize some variables.
72
72
  sub_rng = @rng.dup
73
73
  n_samples = x.shape[0]
74
- n_components = [1, [@params[:n_components], n_samples].min].max
74
+ n_components = [1, [@params[:n_components], n_samples].min].max # rubocop:disable Style/ComparableClamp
75
75
 
76
76
  # random sampling.
77
77
  @component_indices = Numo::Int32.cast(Array(0...n_samples).shuffle(random: sub_rng)[0...n_components])
@@ -5,6 +5,6 @@ module Rumale
5
5
  # Module for kernel approximation algorithms.
6
6
  module KernelApproximation
7
7
  # @!visibility private
8
- VERSION = '0.25.0'
8
+ VERSION = '0.27.0'
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rumale-kernel_approximation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.25.0
4
+ version: 0.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoshoku
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-18 00:00:00.000000000 Z
11
+ date: 2023-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: numo-narray
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.25.0
33
+ version: 0.27.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.25.0
40
+ version: 0.27.0
41
41
  description: |
42
42
  Rumale::KernelApproximation provides kernel approximation algorithms,
43
43
  such as RBF feature mapping and Nystroem method,