Examples of changeFunction()


Examples of com.neuralnetwork.shared.functions.LinearFunction.changeFunction()

    for (int i = 0; i < NUM_ITER; i++) {
      assertEquals(f.activate(i), i, ACCUR * Math.ulp(i));
      assertEquals(f.derivative(i), 1, ACCUR * Math.ulp(i));
    }

    f.changeFunction(FunctionType.NULL);
   
    for (int i = 0; i < NUM_ITER; i++) {
      assertEquals(f.activate(i), 0, ACCUR * Math.ulp(i));
      assertEquals(f.derivative(i), 0, ACCUR * Math.ulp(i));
    }
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.