lib/dnn/core/activations.rb in ruby-dnn-0.3.0 vs lib/dnn/core/activations.rb in ruby-dnn-0.3.1

- old
+ new

@@ -82,10 +82,10 @@ @out - y end def loss(y) batch_size = y.shape[0] - 0.5 * ((@out - y) ** 2).sum / batch_size + ridge + 0.5 * ((@out - y)**2).sum / batch_size + ridge end end class SoftmaxWithLoss < OutputLayer