Examples of evaluate()


Examples of org.apache.mahout.cf.taste.eval.RecommenderIRStatsEvaluator.evaluate()

          UserSimilarity similarity = new TanimotoCoefficientSimilarity(model);
          UserNeighborhood neighborhood = new NearestNUserNeighborhood(2, similarity, model);
          return new GenericBooleanPrefUserBasedRecommender(model, neighborhood, similarity);
        }
      };
      IRStatistics stats = evaluator.evaluate(recommenderBuilder, null, model, null, 10, Double.NaN, 0.1);
      System.out.println(stats);
  }

}

Examples of org.apache.mahout.cf.taste.impl.eval.AverageAbsoluteDifferenceRecommenderEvaluator.evaluate()

          throw new TasteException(ioe);
        }

      }
    };
    double score = evaluator.evaluate(recommenderBuilder, null, model, 0.95, 0.1);
    System.out.println(score);
  }

}

Examples of org.apache.mahout.cf.taste.impl.eval.GenericRecommenderIRStatsEvaluator.evaluate()

          UserSimilarity similarity = new TanimotoCoefficientSimilarity(model);
          UserNeighborhood neighborhood = new NearestNUserNeighborhood(2, similarity, model);
          return new GenericBooleanPrefUserBasedRecommender(model, neighborhood, similarity);
        }
      };
      IRStatistics stats = evaluator.evaluate(recommenderBuilder, null, model, null, 10, Double.NaN, 0.1);
      System.out.println(stats);
  }

}

Examples of org.apache.marmotta.kiwi.sparql.evaluation.KiWiEvaluationStrategyImpl.evaluate()

            new FilterOptimizer().optimize(tupleExpr, dataset, bindings);
            new OrderLimitOptimizer().optimize(tupleExpr, dataset, bindings);

            log.debug("evaluating SPARQL query:\n {}", tupleExpr);

            return strategy.evaluate(tupleExpr, EmptyBindingSet.getInstance());

        } catch (QueryEvaluationException e) {
            throw new SailException(e.getMessage(),e);
        }
    }

Examples of org.apache.maven.archiva.repository.scanner.functors.ConsumerWantsFilePredicate.evaluate()

        ConsumerWantsFilePredicate predicate = new ConsumerWantsFilePredicate();
        BaseFile baseFile = new BaseFile( repoLocation, localFile );
        predicate.setBasefile( baseFile );

        assertFalse( predicate.evaluate( repoPurgeConsumer ) );
    }

    private void setLastModified( String path )
    {
        File dir = new File( path );

Examples of org.apache.maven.enforcer.rule.api.EnforcerRuleHelper.evaluate()

        RequirePrerequisite rule = new RequirePrerequisite();

        MavenProject project = mock( MavenProject.class );

        EnforcerRuleHelper helper = mock( EnforcerRuleHelper.class );
        when( helper.evaluate( "${project}" ) ).thenReturn( project );

        rule.execute( helper );
    }
   
    @Test

Examples of org.apache.maven.plugin.assembly.interpolation.AssemblyExpressionEvaluator.evaluate()

            String location = it.next();

            // allow expressions in path to component descriptor... MASSEMBLY-486
            try
            {
                location = aee.evaluate( location ).toString();
            }
            catch ( final Exception eee )
            {
                getLogger().error( "Error interpolating componentDescriptor: " + location, eee );
            }

Examples of org.apache.muse.ws.resource.properties.query.QueryExpression.evaluate()

        Element wsrpDoc = props.getResourcePropertyDocument();
       
        QueryExpressionFactory factory = getQueryExpressionFactory();
        QueryExpression evaluator = factory.newInstance(dialect);
       
        return evaluator.evaluate(wsrpDoc, query);
    }
   
    protected void setQueryExpressionFactory(QueryExpressionFactory factory)
    {
        _factory = factory;

Examples of org.apache.myfaces.extensions.cdi.core.impl.activation.PropertyExpressionInterpreter.evaluate()

    public void testSimplePropertyExpressions()
    {
        ExpressionInterpreter<String, Boolean> interpreter = new PropertyExpressionInterpreter(){};

        System.setProperty("k.1", "v1");
        assertEquals(interpreter.evaluate("k.1==v1"), Boolean.TRUE);
        assertEquals(interpreter.evaluate("k.1==v2"), Boolean.FALSE);

        assertEquals(interpreter.evaluate("k.1!=v1"), Boolean.FALSE);
        assertEquals(interpreter.evaluate("k.1!=v2"), Boolean.TRUE);

Examples of org.apache.myfaces.tobago.internal.layout.IntervalList.evaluate()

            }
          }
        }
      }

      intervalList.evaluate();
      if (token instanceof AutoLayoutToken || token instanceof RelativeLayoutToken) {
        heads[i].setIntervalList(intervalList);
      }
      if (token instanceof AutoLayoutToken) {
        heads[i].setCurrent(intervalList.getCurrent());
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.