public static void BPRMFTopNTest() { List <Rating> baseRatings = Tools.GetRatings(BaseRatingFile); List <Rating> testRatings = Tools.GetRatings(TestRatingFile); Tools.UpdateIndexesToZeroBased(baseRatings); Tools.UpdateIndexesToZeroBased(testRatings); BPRMF f = new BPRMF(MaxUserId, MaxItemId, 10, "gaussian"); // gaussian //f.TryTopN(baseRatings, testRatings, 100, 0.001, 1, 0.00025, 0.00025); f.TryTopN(baseRatings, testRatings, 100, 0.01, 1, 0.01, 0.01); }
static ItemRecommendation() { recommender = new BPRMF(); recommender.LoadModel("C:\\Users\\pamjeavrat\\Documents\\Works\\project\\model\\w_bprmf.txt"); }