lib/dnn/core/utils.rb in ruby-dnn-0.9.1 vs lib/dnn/core/utils.rb in ruby-dnn-0.9.2

- old
+ new

@@ -18,9 +18,11 @@ return dnn_class.load_hash(hash) end dnn_class.new end + # TODO + # Don't want to write an implementation of the activation function in utils, so we will consider it later. def self.sigmoid(x) 1 / (1 + NMath.exp(-x)) end def self.softmax(x)