rumale-clustering 0.26.0 → 0.28.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: d3bf73257e55c42e715a6bf0c0150b000978d2c7f6f4a8477288b5b8cefa88c3
4
+ data.tar.gz: 7f780b48d262296b668560203492be335f7e1fd5346785e5373cbacc60073d16
5
5
  SHA512:
6
- metadata.gz: 2bcbe3e94d4ae65507fb6253b68264dcc42ed455a7150d7096ea71d4d838dae2de2ba2b7991e06b258b16e28f701f5c350b5e26a7c06f43a0b08d6e0145c5cb1
7
- data.tar.gz: c08a182fd31b16aaad51186c4dfe3457e5ea7d5f9b956a966ead434a036d9817189cd3e5ee7be824a04c06baf60771423f9ef23c0488aceb1705dfde7aaeb8a4
6
+ metadata.gz: 49d9894557989da65da2980c66e8f8514d45d0b9c48c20fda5e1c0728385b07fb5314e9acc8355de9fbe79ebd300507d2dd1547e300e997009c93a5cd8894d76
7
+ data.tar.gz: f7a67fb0ed32b1c5d23d8930323fdc369e6be24e5e01065b491d062b0cd90b3e2f4b85aba2872e07c04e75ed818c6b7b506d2138b0768ce2fcff425662d053c9
@@ -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.28.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.28.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-11-12 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.28.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.28.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,
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  requirements: []
90
- rubygems_version: 3.3.26
90
+ rubygems_version: 3.4.20
91
91
  signing_key:
92
92
  specification_version: 4
93
93
  summary: Rumale::Clustering provides cluster analysis algorithms with Rumale interface.