Class MovieLensExample


  • public class MovieLensExample
    extends java.lang.Object
    Example of recommendation system based on MovieLens dataset (see https://grouplens.org/datasets/movielens/). In this example we create a cache with MovieLens rating data. Each entry in this cache represents a rating point (rating set by a single user to a single movie). Then we pass this cache to RecommendationTrainer and so that train RecommendationModel. This model predicts rating with assumed to be set by any user to any movie. When model is ready we calculate R2 score.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)
      Run example.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MovieLensExample

        public MovieLensExample()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException
        Run example.
        Throws:
        java.io.IOException