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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/rumale/manifold/mds.rb +1 -1
- data/lib/rumale/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3d81772d14e42fc581be90e76066047d1454897
|
4
|
+
data.tar.gz: 9397a5ea564f8294e6f58c0bff833952eaeffccb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae6fea59e338660d65c5e6aa06d9fcbab103468b8fa58be9951cbfd37b42c827e55a2d11f88efe3be58847849accb9ad4e249ac31fd66abaec39f7ac2c15df52
|
7
|
+
data.tar.gz: 54f75fdb402b0da1af220a2392e6921bf9a1832f8d31a4995981442b99ec9a50e659685d40bc6d998b5c966a4370f146dbff8b127cf5d1ce9685a068c85c5f48
|
data/CHANGELOG.md
CHANGED
@@ -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)
|
data/lib/rumale/manifold/mds.rb
CHANGED
@@ -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
|
data/lib/rumale/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2019-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: numo-narray
|