コード例 #1
0
 public void addModel(RecommenderSystem.PredictionMethod method, IPredictionModel model)
 {
     if (!predictionMethodsDictionary.ContainsKey(method))
     {
         predictionMethodsDictionary.Add(method, model);
     }
 }
コード例 #2
0
 internal IPredictionModel getModel(RecommenderSystem.PredictionMethod method)
 {
     return(predictionMethodsDictionary[method]);
 }
コード例 #3
0
 public double Predict(RecommenderSystem.PredictionMethod method, User user, Item item)
 {
     return(predictionMethodsDictionary[method].Predict(user, item));
 }
コード例 #4
0
 public void Train(RecommenderSystem.PredictionMethod method)
 {
     predictionMethodsDictionary[method].Train();
 }