lib/dnn/core/utils.rb in ruby-dnn-0.15.3 vs lib/dnn/core/utils.rb in ruby-dnn-0.16.0

- old
+ new

@@ -21,10 +21,10 @@ dnn_class.from_hash(hash) end # Return the result of the sigmoid function. def self.sigmoid(x) - Layers::Sigmoid.new.forward(x) + Losses::SigmoidCrossEntropy.sigmoid(x) end # Return the result of the softmax function. def self.softmax(x) Losses::SoftmaxCrossEntropy.softmax(x)