@Test public void testDerivative(){ for(int i = 0; i < INPUT_VALUES.length; i++){ if (INPUT_VALUES[i] < 0) { 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); } } }
@Override public double derivative(double input) { if (input >= 0) throw new UnsupportedOperationException("Can't compute a derivative " + "of the ELU activation function for positve values."); else return activate(input) + slope; }
ActivationELU extends ActivationFunction { @Override public double derivative(double input) { if (input >= 0) throw new UnsupportedOperationException("Can't compute a derivative " + "of the ELU activation function for positve values."); else return activate(input) + slope; } }
ActivationELU extends ActivationFunction { @Override public double derivative(double input) { if (input >= 0) throw new UnsupportedOperationException("Can't compute a derivative " + "of the ELU activation function for positve values."); else return activate(input) + slope; }  }
ActivationELU extends ActivationFunction { @Override public double derivative(double input) { if (input >= 0) throw new UnsupportedOperationException("Can't compute a derivative " + "of the ELU activation function for positve values."); else return activate(input) + slope; }  @Override double activate(double input); @Override double derivative(double input); @Override double getMax(); @Override double getMin(); double getslope(); void setslope(double slope); }
ActivationELU extends ActivationFunction { @Override public double derivative(double input) { if (input >= 0) throw new UnsupportedOperationException("Can't compute a derivative " + "of the ELU activation function for positve values."); else return activate(input) + slope; }  @Override double activate(double input); @Override double derivative(double input); @Override double getMax(); @Override double getMin(); double getslope(); void setslope(double slope); final static double MAX; static double MIN; }