rumale-clustering 0.26.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: d4bd3dd2f04f44e145f7ebe90154dfd9e2970485c58cd68af82abd0f744e78c0
4
- data.tar.gz: 9af9eafaa42f596f75c09a13b6da658bf7ceb69af657a22bc50f6c58b7a2eb05
3
+ metadata.gz: 45670ff85fcced403ac58edd979f2487027f6b61ca1c8b9d95eddf4e292e2f5d
4
+ data.tar.gz: 2a1f7a44e0c69555f43f3b24e487471aabd85688bf21a5d141e936baee9c27c7
5
5
  SHA512:
6
- metadata.gz: 2bcbe3e94d4ae65507fb6253b68264dcc42ed455a7150d7096ea71d4d838dae2de2ba2b7991e06b258b16e28f701f5c350b5e26a7c06f43a0b08d6e0145c5cb1
7
- data.tar.gz: c08a182fd31b16aaad51186c4dfe3457e5ea7d5f9b956a966ead434a036d9817189cd3e5ee7be824a04c06baf60771423f9ef23c0488aceb1705dfde7aaeb8a4
6
+ metadata.gz: a881089ed98394ca1ebe9f067956d9f36b33ce38b160cb95220b1fac73295eb96bd02c517acf87b49ee637ef6cc82695ac3aa324e6540b84ccda2a8cb2fb7bd4
7
+ data.tar.gz: cf6afa202648c7aed4e4194d75a13977187c5040cdfb8918155837353658e217ac6d58d58d8ea7a3b6df0d53f65fd1d732c6e1f49cd2c1a91c0ae30fe0af2c32
@@ -211,7 +211,7 @@ module Rumale
211
211
  end
212
212
 
213
213
  def cluster_stability(tree)
214
- tree.sort! { |a, b| a.weight <=> b.weight }
214
+ tree.sort_by!(&:weight)
215
215
 
216
216
  root = tree.map(&:x).min
217
217
  child_max = tree.map(&:y).max
@@ -148,7 +148,7 @@ module Rumale
148
148
  weight = curr_weights.min
149
149
  Node.new(x: curr_node, y: next_node, weight: weight)
150
150
  end
151
- mst.sort! { |a, b| a.weight <=> b.weight }
151
+ mst.sort_by!(&:weight)
152
152
  end
153
153
 
154
154
  def single_linkage_hierarchy(mst)
@@ -5,6 +5,6 @@ module Rumale
5
5
  # This module consists of classes that implement cluster analysis methods.
6
6
  module Clustering
7
7
  # @!visibility private
8
- VERSION = '0.26.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-clustering
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.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-02-19 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.26.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.26.0
40
+ version: 0.27.0
41
41
  description: |
42
42
  Rumale::Clustering provides cluster analysis algorithms,
43
43
  such as K-Means, Gaussian Mixture Model, DBSCAN, and Spectral Clustering,