Examples of optimize()


Examples of cc.mallet.optimize.LimitedMemoryBFGS.optimize()

//    boolean continueTraining = true;
    boolean converged = false;
    logger.info ("CRF about to train with "+numIterations+" iterations");
    for (i = 0; i < numIterations; i++) {
      try {
        converged = maximizer.optimize (1);
        logger.info ("CRF finished one iteration of maximizer, i="+i);
        runEvaluators();
      } catch (IllegalArgumentException e) {
        e.printStackTrace();
        logger.info ("Catching exception; saying converged.");
View Full Code Here

Examples of cc.mallet.optimize.Optimizer.optimize()

    for (iter = 0; iter < numIter; iter++) {
      long etime = new java.util.Date ().getTime ();
      logger.info ("ACRF trainer iteration " + iter + " at time " + (etime - stime));

      try {
        converged = maximizer.optimize (1);
        converged |= callEvaluator (acrf, trainingList, validationList, testSet, iter, eval);

        if (converged) break;
        resetOnError = true;
View Full Code Here

Examples of com.dotcms.content.elasticsearch.business.ContentletIndexAPI.optimize()

    public void optimizeIndices() {
      validateUser();
        ContentletIndexAPI api=APILocator.getContentletIndexAPI();
        List<String> indices=api.listDotCMSIndices();
        api.optimize(indices);
    }

    /**
   * The path where tmp files are stored. This gets wiped alot
   */
 
View Full Code Here

Examples of com.dotcms.repackage.org.elasticsearch.client.IndicesAdminClient.optimize()

    try {
      IndicesAdminClient iac = new ESClient().getClient().admin().indices();

      OptimizeRequest req = new OptimizeRequest(indexNames.toArray(new String[indexNames.size()]));

      OptimizeResponse res = iac.optimize(req).get();

      Logger.info(this.getClass(), "Optimizing " + indexNames + " :" + res.getSuccessfulShards() + "/" + res.getTotalShards()
          + " shards optimized");
      return true;
    } catch (Exception e) {
View Full Code Here

Examples of com.esri.gpt.server.assertion.index.AsnIndexAdapter.optimize()

            String asnLoc = asnIndexRef.getIndexLocation();
            LOGGER.fine("Optimizing assertion index: "+asnLoc);
            try {
              long asnStartMillis = System.currentTimeMillis();
              AsnIndexAdapter asnIndexAdapter = asnIndexRef.makeIndexAdapter(null);
              asnIndexAdapter.optimize();
             
              double asnSec = (System.currentTimeMillis() - asnStartMillis) / 1000.0;
              StringBuffer msg = new StringBuffer();
              msg.append("Optimization of assertion index complete: "+asnLoc);
              msg.append(", runtime: ");
View Full Code Here

Examples of com.facebook.presto.sql.planner.ExpressionInterpreter.optimize()

        Expression parsedExpression = FunctionAssertions.createExpression(expression, METADATA, SYMBOL_TYPES);

        IdentityHashMap<Expression, Type> expressionTypes = getExpressionTypes(TEST_SESSION, METADATA, SQL_PARSER, SYMBOL_TYPES, parsedExpression);
        ExpressionInterpreter interpreter = expressionOptimizer(parsedExpression, METADATA, TEST_SESSION, expressionTypes);
        return interpreter.optimize(new SymbolResolver()
        {
            @Override
            public Object getValue(Symbol symbol)
            {
                switch (symbol.getName().toLowerCase()) {
View Full Code Here

Examples of com.facebook.presto.sql.relational.optimizer.ExpressionOptimizer.optimize()

        Preconditions.checkNotNull(result, "translated expression is null");

        if (optimize) {
            ExpressionOptimizer optimizer = new ExpressionOptimizer(metadata.getFunctionRegistry(), session);
            return optimizer.optimize(result);
        }

        return result;
    }
View Full Code Here

Examples of com.google.caja.ancillary.opt.JsOptimizer.optimize()

        } catch (IllegalStateException e) {
          logger.println("Failed to configure parser " + e.getMessage());
          passed = false;
        }
      }
      outputJs = optimizer.optimize();
    } else {
      throw new RuntimeException("Unrecognized language: " + language);
    }
    passed = passed && !hasErrors(mq);
View Full Code Here

Examples of com.google.javascript.jscomp.type.FlowScope.optimize()

  public void testOptimize() {
    assertEquals(localEntry, localEntry.optimize());

    FlowScope child = localEntry.createChildFlowScope();
    assertEquals(localEntry, child.optimize());

    child.inferSlotType("localB", NUMBER_TYPE);
    assertEquals(child, child.optimize());
  }
View Full Code Here

Examples of com.googlecode.pngtastic.core.PngOptimizer.optimize()

     public void compressPNG(String inputFilePath, String outputFilePath, String fileType) {
             try
      {
       PngOptimizer optimizer = new PngOptimizer();
        PngImage image = new PngImage(inputFilePath);
        optimizer.optimize(image, outputFilePath, false,9);
      }catch (IOException e)
      {
        e.printStackTrace();
      }       
     }
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.