Class: CooCoo::WeightDeltas
Instance Attribute Summary collapse
-
#bias_deltas ⇒ Object
readonly
Returns the value of attribute bias_deltas.
-
#weight_deltas ⇒ Object
readonly
Returns the value of attribute weight_deltas.
Instance Method Summary collapse
-
#initialize(bias, weights) ⇒ WeightDeltas
constructor
A new instance of WeightDeltas.
Constructor Details
#initialize(bias, weights) ⇒ WeightDeltas
Returns a new instance of WeightDeltas.
6 7 8 9 |
# File 'lib/coo-coo/weight_deltas.rb', line 6 def initialize(bias, weights) @bias_deltas = bias @weight_deltas = weights end |
Instance Attribute Details
#bias_deltas ⇒ Object (readonly)
Returns the value of attribute bias_deltas.
3 4 5 |
# File 'lib/coo-coo/weight_deltas.rb', line 3 def bias_deltas @bias_deltas end |
#weight_deltas ⇒ Object (readonly)
Returns the value of attribute weight_deltas.
4 5 6 |
# File 'lib/coo-coo/weight_deltas.rb', line 4 def weight_deltas @weight_deltas end |