Class: DNN::Initializers::Initializer
- Inherits:
-
Object
- Object
- DNN::Initializers::Initializer
- Defined in:
- lib/dnn/core/initializers.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#init_param(layer, param) ⇒ Object
Classes that inherit from this class must implement this method.
- #to_hash(merge_hash = nil) ⇒ Object
Instance Method Details
#init_param(layer, param) ⇒ Object
Classes that inherit from this class must implement this method.
6 7 8 |
# File 'lib/dnn/core/initializers.rb', line 6 def init_param(layer, param) raise NotImplementedError.new("Class '#{self.class.name}' has implement method 'init_params'") end |
#to_hash(merge_hash = nil) ⇒ Object
10 11 12 13 14 |
# File 'lib/dnn/core/initializers.rb', line 10 def to_hash(merge_hash = nil) hash = {class: self.class.name} hash.merge!(merge_hash) if merge_hash hash end |