private void checkMaxUsers(RecommenderSystem rs, int min, int max, List <RecommenderSystem.PredictionMethod> lMethods) { for (int i = min; i <= max; i++) { rs.SetMaxUsers(i); var tmp = rs.ComputeHitRatio(lMethods, 0.95); foreach (var item in tmp) { update(item.Key, item.Value, i, "Max Users"); } } }
private void checkSimilarity(RecommenderSystem rs, int min_minSimilarity, int max_minSimilarity, List <RecommenderSystem.PredictionMethod> lMethods) { for (int i = min_minSimilarity; i <= max_minSimilarity; i++) { double value = (double)i / 100.0; rs.SetSimilaritySaf(value); var tmp = rs.ComputeHitRatio(lMethods, 0.95); foreach (var item in tmp) { update(item.Key, item.Value, value, "similarity"); } } }