Package com.clearnlp.classification.algorithm.old

Examples of com.clearnlp.classification.algorithm.old.AbstractAdaGrad


  protected AbstractModel updateAdaGradModel(AbstractTrainSpace space, byte solver, double alpha, double rho, double eps, boolean average)
  {
    space.build();
    LOG.info(String.format("AdaGrad: solver=%d, alpha=%5.3f, rho=%5.3f, eps=%5.3f, average=%b\n", solver, alpha, rho, eps, average));
   
    AbstractAdaGrad algorithm = AdaGradTrain.getAlgorithm(solver, alpha, rho, eps);
    algorithm.updateWeights(space, average);
   
    return AdaGradTrain.getModel(space, solver, alpha, rho, eps, average);
  }
View Full Code Here


    return null;
  }
 
  static public AbstractModel getModel(AbstractTrainSpace space, byte solver, double alpha, double rho, double eps, boolean average)
  {
    AbstractAdaGrad algorithm = getAlgorithm(solver, alpha, rho, eps);
    algorithm.updateWeights(space, average);
    return space.getModel();
  }
View Full Code Here

TOP

Related Classes of com.clearnlp.classification.algorithm.old.AbstractAdaGrad

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.