public static void UserKNNv2Test(double testSize = 0.1) { MyTable table = GetRecords(DefaultRecordFile); var v = GetRelations(table); List <Rating> ratings = v.Item1; var data = Tools.TrainTestSplit(ratings, testSize); UserKNNv2 knn = new UserKNNv2(); knn.TryTopN(data.Item1, data.Item2); }
public static void UserKNNv2Test(double testSize = 0.1) { List <Rating> ratings = Tools.GetRatings(DefaultRatingFile); Tools.UpdateIndexesToZeroBased(ratings); var data = Tools.TrainTestSplit(ratings, testSize); UserKNNv2 knn = new UserKNNv2(); //knn.TryTopN(data.Item1, data.Item2, 80, 10); knn.TryTopN(data.Item1, data.Item2); }
public static void UserKNNv2Test() { List <Rating> baseRatings = Tools.GetRatings(BaseRatingFile); List <Rating> testRatings = Tools.GetRatings(TestRatingFile); Tools.UpdateIndexesToZeroBased(baseRatings); Tools.UpdateIndexesToZeroBased(testRatings); UserKNNv2 knn = new UserKNNv2(); //knn.TryTopN(baseRatings, testRatings, 80, 10); knn.TryTopN(baseRatings, testRatings); }