public static void UserKNNTest(double testSize = 0.1) { List <Rating> ratings = Tools.GetRatings(DefaultRatingFile); Tools.UpdateIndexesToZeroBased(ratings); var data = Tools.TrainTestSplit(ratings, testSize); UserKNN knn = new UserKNN(); knn.TryMaeRmse(data.Item1, data.Item2); }
public static void UserKNNTest0(double testSize = 0.1) { List <Rating> baseRatings = Tools.GetRatings(BaseRatingFile); List <Rating> testRatings = Tools.GetRatings(TestRatingFile); Tools.UpdateIndexesToZeroBased(baseRatings); Tools.UpdateIndexesToZeroBased(testRatings); UserKNN knn = new UserKNN(); knn.TryMaeRmse(baseRatings, testRatings); }