rumale-kernel_approximation 0.25.0 → 0.26.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: 727dcacffb40599cb49eb1034fd5b9b28f63055deeafc15b17bfbb71259a63f8
4
+ data.tar.gz: 6cfad79d539b390b838405e2bade390c14efebb0cf5946733113ea8988dc745d
5
5
  SHA512:
6
- metadata.gz: f81077172e5656089872fe73fed55beae62fe91e0b7c9bc91956fbcc7c4d270edb41dfb65f185894f9f6f6435204a34c09d62464e557ac4283fd1f206c7195ac
7
- data.tar.gz: 7528672be128caee7bad962d2ac92e264771c76822913374319d64a991f5ac6e8b99bd578e79ad26e4298b196a1a6c89a55bf7962140ff91b2112bc399f778e8
6
+ metadata.gz: d26361201737e2d8268f0e79a31cd40456c1f18758a600fbcb884b3c247390d1f3a194c93732e7055b18e4412c741fed0718414e10c64dfab5dce476c1e24f7c
7
+ data.tar.gz: 7e4c68616b40c390fa7228d528775f8389821d80c20f5bff31c02091498ec6adce3a64d880771b3bafd609f955622a8c3d8ed7a5f37d61cf848176f2ee5368ed
@@ -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.26.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.26.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-02-19 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.26.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.26.0
41
41
  description: |
42
42
  Rumale::KernelApproximation provides kernel approximation algorithms,
43
43
  such as RBF feature mapping and Nystroem method,