Package org.grouplens.lenskit

Examples of org.grouplens.lenskit.Recommender


    }

    @SuppressWarnings("deprecation")
    @Test
    public void testSlopeOneRecommenderEngineCreate() {
        Recommender rec = engine.createRecommender();

        assertThat(rec.getItemScorer(),
                   instanceOf(SlopeOneItemScorer.class));
        RatingPredictor rp = rec.getRatingPredictor();
        assertThat(rp, instanceOf(SimpleRatingPredictor.class));
        assertThat(((SimpleRatingPredictor) rp).getScorer(),
                   sameInstance(rec.getItemScorer()));
        assertThat(rec.getItemRecommender(),
                   instanceOf(TopNItemRecommender.class));
    }
View Full Code Here


    }

    @SuppressWarnings("deprecation")
    @Test
    public void testItemItemRecommenderEngineCreate() {
        Recommender rec = engine.createRecommender();

        assertThat(rec.getItemScorer(),
                instanceOf(ItemItemScorer.class));
        assertThat(rec.getRatingPredictor(),
                instanceOf(SimpleRatingPredictor.class));
        assertThat(rec.getItemRecommender(),
                instanceOf(TopNItemRecommender.class));
        assertThat(rec.getGlobalItemRecommender(),
                instanceOf(TopNGlobalItemRecommender.class));
        assertThat(rec.getGlobalItemScorer(),
                instanceOf(ItemItemGlobalScorer.class));
    }
View Full Code Here

    @SuppressWarnings("deprecation")
    @Test
    public void testFunkSVDRecommenderEngineCreate() throws RecommenderBuildException {
        LenskitRecommenderEngine engine = makeEngine();
        Recommender rec = engine.createRecommender();

        assertThat(rec.getItemScorer(),
                   instanceOf(FunkSVDItemScorer.class));
        assertThat(rec.getItemRecommender(),
                   instanceOf(TopNItemRecommender.class));
        RatingPredictor pred = rec.getRatingPredictor();
        assertThat(pred, instanceOf(SimpleRatingPredictor.class));
        assertThat(((SimpleRatingPredictor) pred).getScorer(),
                   sameInstance(rec.getItemScorer()));
        assertThat(((FunkSVDItemScorer) rec.getItemScorer()).getUpdateRule(),
                   nullValue());
    }
View Full Code Here

    }

    @SuppressWarnings("deprecation")
    @Test
    public void testItemItemRecommenderEngineCreate() {
        Recommender rec = engine.createRecommender();

        assertThat(rec.getItemScorer(),
                   instanceOf(ItemItemScorer.class));
        assertThat(rec.getRatingPredictor(),
                   instanceOf(SimpleRatingPredictor.class));
        assertThat(rec.getItemRecommender(),
                   instanceOf(TopNItemRecommender.class));
        assertThat(rec.getGlobalItemRecommender(),
                   instanceOf(TopNGlobalItemRecommender.class));
        assertThat(rec.getGlobalItemScorer(),
                   instanceOf(ItemItemGlobalScorer.class));
    }
View Full Code Here

    }

    @SuppressWarnings("deprecation")
    @Test
    public void testItemItemRecommenderEngineCreate() {
        Recommender rec = engine.createRecommender();

        assertThat(rec.getItemScorer(),
                   instanceOf(ItemItemScorer.class));
        assertThat(rec.getRatingPredictor(),
                   instanceOf(SimpleRatingPredictor.class));
        assertThat(rec.getItemRecommender(),
                   instanceOf(TopNItemRecommender.class));
        assertThat(rec.getGlobalItemRecommender(),
                   instanceOf(TopNGlobalItemRecommender.class));
        assertThat(rec.getGlobalItemScorer(),
                   instanceOf(ItemItemGlobalScorer.class));
    }
View Full Code Here

TOP

Related Classes of org.grouplens.lenskit.Recommender

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.