ruby-dnn 0.4.2 → 0.4.3

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
  SHA256:
3
- metadata.gz: 6c69ef32fd33f04c1452e3b16a6de42d69274fa717726b0306b30a530935d059
4
- data.tar.gz: 3ef80bd96e8328c0bc06762de1440f05eab109fecd3519ff0460abdcbfc2194d
3
+ metadata.gz: 7b6adf33a6eaf3b88d61ca4c350121cc685d95da715a6cdb9e0133795e0ca438
4
+ data.tar.gz: 3c5bfe667fb236dc559cb2d4ab38ba6bc2d409afcdaaa6207edd3ef88108b202
5
5
  SHA512:
6
- metadata.gz: dc501da4b2681cc1a3c65c8af2234685618872c466ca720e38692a7c2610d9b4520709babac1c20f91b675cfb74a4e317a71831aba04a71337148d1f4c8effda
7
- data.tar.gz: 01cc6815889a578da2601c205b86277ad674531c4020ff624a2f15ea17ea4fe070a4b69228d6f53585f235d96d28d8d44132035d7adb2d963de94c9a3a785fbf
6
+ metadata.gz: 3482eae0347d5165428c061050189c12f862bfcc643bfa8d1756723a0d96a6c3dbc09ae7d1712de6aff4265859034b472bf520e9ced26c0e9413d32f26cc816f
7
+ data.tar.gz: 459cc03b3c4c6793dfbedce8622cd18c62ec55e4ffd63c7fb04f20316d344b095d04793f007f5deb0acad96d39e6af588713ac488840ae8cf9bdfe703674d6b8
@@ -50,14 +50,14 @@ module DNN
50
50
  end
51
51
 
52
52
 
53
- class AdaGrad
53
+ class AdaGrad < Optimizer
54
54
  def initialize(learning_rate = 0.01)
55
55
  super(learning_rate)
56
56
  @g = {}
57
57
  end
58
58
 
59
59
  def self.load_hash(hash)
60
- @learning_rate = hash[:learning_rate]
60
+ self.new(hash[:learning_rate])
61
61
  end
62
62
 
63
63
  def update(layer)
@@ -73,16 +73,16 @@ module DNN
73
73
 
74
74
  class RMSProp < Optimizer
75
75
  attr_accessor :muse
76
+
77
+ def self.load_hash(hash)
78
+ self.new(hash[:learning_rate], hash[:muse])
79
+ end
76
80
 
77
81
  def initialize(learning_rate = 0.001, muse = 0.9)
78
82
  super(learning_rate)
79
83
  @muse = muse
80
84
  @g = {}
81
85
  end
82
-
83
- def self.load_hash(hash)
84
- self.new(hash[:learning_rate], hash[:muse])
85
- end
86
86
 
87
87
  def update(layer)
88
88
  @g[layer] ||= {}
@@ -1,3 +1,3 @@
1
1
  module DNN
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-dnn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - unagiootoro
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-23 00:00:00.000000000 Z
11
+ date: 2018-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: numo-narray