rumale 0.14.0 → 0.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4770a703a1c19b899b495006c36c19db5edf6fb1
4
- data.tar.gz: 7a5493680c41332162c4434b6b5c1d0a07c1b456
3
+ metadata.gz: a3d81772d14e42fc581be90e76066047d1454897
4
+ data.tar.gz: 9397a5ea564f8294e6f58c0bff833952eaeffccb
5
5
  SHA512:
6
- metadata.gz: 9c569cfef32fe2a161c2a1350b516f1dde3dfd72109fbc442118a91162c8193ede68a21dd3f2446d0e2b00d203800375c5594c9a9563867ac9fbe4509a3f8e88
7
- data.tar.gz: 8f15681e92c08859745dd8f93acdfedf09b31e321dc5105196f73f161c449a33aeded9f6ff4483c0061044828f69ad5a7aeba7a884443ab163457011d6f5dd46
6
+ metadata.gz: ae6fea59e338660d65c5e6aa06d9fcbab103468b8fa58be9951cbfd37b42c827e55a2d11f88efe3be58847849accb9ad4e249ac31fd66abaec39f7ac2c15df52
7
+ data.tar.gz: 54f75fdb402b0da1af220a2392e6921bf9a1832f8d31a4995981442b99ec9a50e659685d40bc6d998b5c966a4370f146dbff8b127cf5d1ce9685a068c85c5f48
@@ -1,3 +1,7 @@
1
+ # 0.14.1
2
+ - Fix bug where MDS optimization is not performed when tol paremeter is given.
3
+ - Refactor specs.
4
+
1
5
  # 0.14.0
2
6
  - Add classifier and regressor class with multi-layer perceptron.
3
7
  - [MLPClassifier](https://yoshoku.github.io/rumale/doc/Rumale/NeuralNetwork/MLPClassifier.html)
@@ -99,6 +99,7 @@ module Rumale
99
99
  tmp_mat = -ratio
100
100
  tmp_mat[tmp_mat.diag_indices] += ratio.sum(axis: 1)
101
101
  @embedding = 1.fdiv(n_samples) * tmp_mat.dot(@embedding)
102
+ lo_distance_mat = Rumale::PairwiseMetric.euclidean_distance(@embedding)
102
103
  # check convergence.
103
104
  new_stress = calc_stress(hi_distance_mat, lo_distance_mat)
104
105
  if terminate?(@stress, new_stress)
@@ -108,7 +109,6 @@ module Rumale
108
109
  # next step.
109
110
  @n_iter = t + 1
110
111
  @stress = new_stress
111
- lo_distance_mat = Rumale::PairwiseMetric.euclidean_distance(@embedding)
112
112
  puts "[MDS] stress function after #{@n_iter} iterations: #{@stress}" if @params[:verbose] && (@n_iter % 100).zero?
113
113
  end
114
114
  self
@@ -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.0'
6
+ VERSION = '0.14.1'
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.0
4
+ version: 0.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoshoku
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-16 00:00:00.000000000 Z
11
+ date: 2019-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: numo-narray