C# 클래스 MyMediaLite.ItemRecommendation.Prediction

Class that contains static methods for item prediction
파일 보기 프로젝트 열기: zenogantner/MML-KDD

공개 메소드들

메소드 설명
PredictItems ( IRecommender recommender, int user_id, ICollection relevant_items ) : int[]

Predict items for a given user

PredictItems ( IRecommender recommender, int user_id, int max_item_id ) : int[]

predict items for a specific users

WritePredictions ( IRecommender recommender, IPosOnlyFeedback train, ICollection relevant_items, int num_predictions, IEntityMapping user_mapping, IEntityMapping item_mapping, TextWriter writer ) : void

Write item predictions (scores) for all users to a TextWriter object

WritePredictions ( IRecommender recommender, IPosOnlyFeedback train, ICollection relevant_items, int num_predictions, IEntityMapping user_mapping, IEntityMapping item_mapping, string filename ) : void

Write item predictions (scores) for all users to a file

WritePredictions ( IRecommender recommender, IPosOnlyFeedback train, IList relevant_users, ICollection relevant_items, int num_predictions, IEntityMapping user_mapping, IEntityMapping item_mapping, TextWriter writer ) : void

Write item predictions (scores) to a TextWriter object

WritePredictions ( IRecommender recommender, IPosOnlyFeedback train, IList relevant_users, ICollection relevant_items, int num_predictions, IEntityMapping user_mapping, IEntityMapping item_mapping, string filename ) : void

Write item predictions (scores) to a file

WritePredictions ( IRecommender recommender, int user_id, ICollection relevant_items, ICollection ignore_items, int num_predictions, IEntityMapping user_mapping, IEntityMapping item_mapping, TextWriter writer ) : void

Write item predictions (scores) to a TextWriter object

메소드 상세

PredictItems() 공개 정적인 메소드

Predict items for a given user
public static PredictItems ( IRecommender recommender, int user_id, ICollection relevant_items ) : int[]
recommender IRecommender the recommender to use
user_id int the numerical ID of the user
relevant_items ICollection a collection of numerical IDs of relevant items
리턴 int[]

PredictItems() 공개 정적인 메소드

predict items for a specific users
public static PredictItems ( IRecommender recommender, int user_id, int max_item_id ) : int[]
recommender IRecommender the object to use for the predictions
user_id int the user ID
max_item_id int the maximum item ID
리턴 int[]

WritePredictions() 공개 정적인 메소드

Write item predictions (scores) for all users to a TextWriter object
public static WritePredictions ( IRecommender recommender, IPosOnlyFeedback train, ICollection relevant_items, int num_predictions, IEntityMapping user_mapping, IEntityMapping item_mapping, TextWriter writer ) : void
recommender IRecommender the to use for making the predictions
train IPosOnlyFeedback a user-wise containing the items already observed
relevant_items ICollection the list of candidate items
num_predictions int the number of items to return per user, -1 if there should be no limit
user_mapping IEntityMapping an object for the user IDs
item_mapping IEntityMapping an object for the item IDs
writer System.IO.TextWriter the to write to
리턴 void

WritePredictions() 공개 정적인 메소드

Write item predictions (scores) for all users to a file
public static WritePredictions ( IRecommender recommender, IPosOnlyFeedback train, ICollection relevant_items, int num_predictions, IEntityMapping user_mapping, IEntityMapping item_mapping, string filename ) : void
recommender IRecommender the to use for making the predictions
train IPosOnlyFeedback a user-wise containing the items already observed
relevant_items ICollection the list of candidate items
num_predictions int the number of items to return per user, -1 if there should be no limit
user_mapping IEntityMapping an object for the user IDs
item_mapping IEntityMapping an object for the item IDs
filename string the name of the file to write to
리턴 void

WritePredictions() 공개 정적인 메소드

Write item predictions (scores) to a TextWriter object
public static WritePredictions ( IRecommender recommender, IPosOnlyFeedback train, IList relevant_users, ICollection relevant_items, int num_predictions, IEntityMapping user_mapping, IEntityMapping item_mapping, TextWriter writer ) : void
recommender IRecommender the to use for making the predictions
train IPosOnlyFeedback a user-wise containing the items already observed
relevant_users IList a list of users to make recommendations for
relevant_items ICollection the list of candidate items
num_predictions int the number of items to return per user, -1 if there should be no limit
user_mapping IEntityMapping an object for the user IDs
item_mapping IEntityMapping an object for the item IDs
writer System.IO.TextWriter the to write to
리턴 void

WritePredictions() 공개 정적인 메소드

Write item predictions (scores) to a file
public static WritePredictions ( IRecommender recommender, IPosOnlyFeedback train, IList relevant_users, ICollection relevant_items, int num_predictions, IEntityMapping user_mapping, IEntityMapping item_mapping, string filename ) : void
recommender IRecommender the to use for making the predictions
train IPosOnlyFeedback a user-wise containing the items already observed
relevant_users IList a list of users to make recommendations for
relevant_items ICollection the list of candidate items
num_predictions int the number of items to return per user, -1 if there should be no limit
user_mapping IEntityMapping an object for the user IDs
item_mapping IEntityMapping an object for the item IDs
filename string the name of the file to write to
리턴 void

WritePredictions() 공개 정적인 메소드

Write item predictions (scores) to a TextWriter object
public static WritePredictions ( IRecommender recommender, int user_id, ICollection relevant_items, ICollection ignore_items, int num_predictions, IEntityMapping user_mapping, IEntityMapping item_mapping, TextWriter writer ) : void
recommender IRecommender the to use for making the predictions
user_id int the ID of the user to make recommendations for
relevant_items ICollection the list of candidate items
ignore_items ICollection a list of items for which no predictions should be made
num_predictions int the number of items to return per user, -1 if there should be no limit
user_mapping IEntityMapping an object for the user IDs
item_mapping IEntityMapping an object for the item IDs
writer System.IO.TextWriter the to write to
리턴 void