Package cc.mallet.optimize

Examples of cc.mallet.optimize.ConjugateGradient


    }
     if (numIterations == Integer.MAX_VALUE) {
      // Run it again because in our and Sam Roweis' experience, BFGS can still
      // eke out more likelihood after first convergence by re-running without
      // being restricted by its gradient history.
      optimizer = new ConjugateGradient(mt);
      try {
        optimizer.optimize ();
      } catch (IllegalArgumentException e) {
        e.printStackTrace();
        logger.info ("Catching exception; saying converged.");
View Full Code Here


  //  OPTIMIZER OBJECT: maximizes value function
  //

  public Optimizer getOptimizer () {
    if (optimizer == null && optimizable != null) {
      optimizer = new ConjugateGradient(optimizable);
    }

    return optimizer;
  }
View Full Code Here

  //  OPTIMIZER OBJECT: maximizes value function
  //

  public Optimizer getOptimizer () {
    if (optimizer == null && optimizable != null) {
      optimizer = new ConjugateGradient(optimizable);
    }

    return optimizer;
  }
View Full Code Here

TOP

Related Classes of cc.mallet.optimize.ConjugateGradient

Copyright © 2018 www.massapicom. 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.