public void addModel(RecommenderSystem.PredictionMethod method, IPredictionModel model)
 {
     if (!predictionMethodsDictionary.ContainsKey(method))
     {
         predictionMethodsDictionary.Add(method, model);
     }
 }
 internal IPredictionModel getModel(RecommenderSystem.PredictionMethod method)
 {
     return(predictionMethodsDictionary[method]);
 }
 public double Predict(RecommenderSystem.PredictionMethod method, User user, Item item)
 {
     return(predictionMethodsDictionary[method].Predict(user, item));
 }
 public void Train(RecommenderSystem.PredictionMethod method)
 {
     predictionMethodsDictionary[method].Train();
 }