Examples of score()


Examples of org.grouplens.lenskit.ItemScorer.score()

                                                       .build());
        ItemScorer predictor = LenskitRecommenderEngine.build(config)
                                                       .createRecommender()
                                                       .getItemScorer();

        assertEquals(7 / 3.0, predictor.score(2, 9), EPSILON);
        assertEquals(13 / 3.0, predictor.score(3, 6), EPSILON);
        assertEquals(2, predictor.score(4, 6), EPSILON);
        assertEquals(2, predictor.score(4, 9), EPSILON);
        assertEquals(2.5, predictor.score(5, 6), EPSILON);
        assertEquals(3, predictor.score(5, 7), EPSILON);
View Full Code Here

Examples of org.restlet.routing.Route.score()

     */
    public synchronized Route getLast(Request request, Response response,
            float requiredScore) {
        for (int j = size() - 1; (j >= 0); j--) {
            final Route route = get(j);
            if (route.score(request, response) >= requiredScore) {
                return route;
            }
        }

        // No match found
View Full Code Here

Examples of org.springmodules.lucene.search.factory.LuceneHits.score()

    hitsControl.setReturnValue(1, 1);
   
    hits.doc(0);
    hitsControl.setReturnValue(document, 1);
   
    hits.score(0);
    hitsControl.setReturnValue((float)1, 1);
   
    hitExtractor.mapHit(1, document, 1);
    hitExtractorControl.setReturnValue(obj, 1);
   
View Full Code Here

Examples of org.springmodules.lucene.search.factory.LuceneHits.score()

    hitsControl.setReturnValue(1, 1);
   
    hits.doc(0);
    hitsControl.setReturnValue(document, 1);
   
    hits.score(0);
    hitsControl.setReturnValue((float)1, 1);
 
    hitExtractor.mapHit(1, document, 1);
    hitExtractorControl.setReturnValue(obj, 1);
   
View Full Code Here

Examples of org.springmodules.lucene.search.factory.LuceneHits.score()

    hitsControl.setReturnValue(1, 1);
   
    hits.doc(0);
    hitsControl.setReturnValue(document, 1);
   
    hits.score(0);
    hitsControl.setReturnValue((float)1, 1);
   
    hitExtractor.mapHit(1, document, 1);
    hitExtractorControl.setReturnValue(obj, 1);
   
View Full Code Here

Examples of org.springmodules.lucene.search.factory.LuceneHits.score()

    hitsControl.setReturnValue(1, 1);
   
    hits.doc(0);
    hitsControl.setReturnValue(document, 1);
   
    hits.score(0);
    hitsControl.setReturnValue((float)1, 1);
   
    hitExtractor.mapHit(1, document, 1);
    hitExtractorControl.setReturnValue(obj, 1);
   
View Full Code Here

Examples of org.springmodules.lucene.search.factory.LuceneHits.score()

    hitsControl.setReturnValue(1, 1);
   
    hits.doc(0);
    hitsControl.setReturnValue(document, 1);
   
    hits.score(0);
    hitsControl.setReturnValue((float)1, 1);
   
    hitExtractor.mapHit(1, document, 1);
    hitExtractorControl.setReturnValue(obj, 1);
   
View Full Code Here

Examples of ru.autosome.commons.motifModel.di.DiPWM.score()

    Sequence word = new Sequence("ACAGTGACAA");
    DiPWM dipwm = DiPWM.fromPWM(pwm); // A way to transform mono-nucleotide to di matrix

    System.out.println(pwm.score(word));
    System.out.println(dipwm.score(word));

    //DiPWM dipwm_2 = new DiPWMImporter().loadMotif("test_data/dipwm/AP2A.di"));

    run_mono_and_di(pwm, new WordwiseBackground(), discretizer, max_hash_size, threshold);
    run_mono_and_di(pwm, new Background(new double[] {0.1, 0.4, 0.4, 0.1}), discretizer, max_hash_size, threshold);
View Full Code Here

Examples of ru.autosome.commons.motifModel.mono.PWM.score()

//    double[] thresholds = {3,5,7};

    Sequence word = new Sequence("ACAGTGACAA");
    DiPWM dipwm = DiPWM.fromPWM(pwm); // A way to transform mono-nucleotide to di matrix

    System.out.println(pwm.score(word));
    System.out.println(dipwm.score(word));

    //DiPWM dipwm_2 = new DiPWMImporter().loadMotif("test_data/dipwm/AP2A.di"));

    run_mono_and_di(pwm, new WordwiseBackground(), discretizer, max_hash_size, threshold);
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.