Package algo

Examples of algo.GradientAscent.maximize()


  public static void main(String[] args) {
    double[] center = { 2, 3 };
    double[] skew = { 1, 100 };
    TestMaximization obj = new TestMaximization(center, skew);
    GradientAscent ga = new GradientAscent();
    ga.maximize(obj);
    System.out.println("Gradient descent found params (val="
        + obj.numValueCalls + " grad=" + obj.numGradientCalls + "): ");
    for (int i = 0; i < obj.params.length; i++) {
      System.out.print(obj.params[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.