@Test public void testDerivative(){ for(int i = 0; i < INPUT_VALUES.length; i++){ double functOutput = function.derivative(INPUT_VALUES[i]); assertEquals("The function derivation output is not as expected.", EXPECTED_FUNCT_DERIVATIVE_VALUES[i], functOutput, DOUBLES_EQUAL_DELTA); } }
public double derivative(final double input) { return 1.0 - Math.pow(activate(input), 2.0); }
ActivationTANH extends ActivationFunction { public double derivative(final double input) { return 1.0 - Math.pow(activate(input), 2.0); } }
ActivationTANH extends ActivationFunction { public double derivative(final double input) { return 1.0 - Math.pow(activate(input), 2.0); }  }
ActivationTANH extends ActivationFunction { public double derivative(final double input) { return 1.0 - Math.pow(activate(input), 2.0); }  double activate(final double input); double derivative(final double input); double getMax(); double getMin(); }
ActivationTANH extends ActivationFunction { public double derivative(final double input) { return 1.0 - Math.pow(activate(input), 2.0); }  double activate(final double input); double derivative(final double input); double getMax(); double getMin(); final static double MAX; final static double MIN; }