package tv.floe.metronome.deeplearning.neuralnetwork.activation;

public class Sigmoid {

}

@@ -63,30 +63,453 @@
 n;%0A%0A
-public class Sigmoid %7B
+import org.apache.mahout.math.Matrix;%0A%0Aimport tv.floe.metronome.math.MatrixUtils;%0A%0A%0Apublic class Sigmoid implements ActivationFunction %7B%0A%0A%09private static final long serialVersionUID = -6280602270833101092L;%0A%0A%09public Matrix apply(Matrix arg0) %7B%0A%09%09return MatrixUtils.sigmoid(arg0);%0A%09%7D%0A%0A%09@Override%0A%09public Matrix applyDerivative(Matrix input) %7B%0A%09%09return MatrixUtils.sigmoid( input ).times( MatrixUtils.oneMinus( MatrixUtils.sigmoid( input ) ) );%0A%09%7D
 %0A%0A%7D%0A

create class Sigmoid and gave a base impl