Class that contains static methods for item prediction
More...
|
static void | WritePredictions (this IRecommender recommender, IPosOnlyFeedback train, IList< int > candidate_items, int num_predictions, string filename, IList< int > users=null, IMapping user_mapping=null, IMapping item_mapping=null, bool repeated_items=false) |
| Write item predictions (scores) to a file More...
|
|
static void | WritePredictions (this IRecommender recommender, IPosOnlyFeedback train, ICollection< int > candidate_items, int num_predictions, TextWriter writer, IList< int > users=null, IMapping user_mapping=null, IMapping item_mapping=null, bool repeated_items=false) |
| Write item predictions (scores) to a TextWriter object More...
|
|
static void | WritePredictions (this IRecommender recommender, int user_id, ICollection< int > candidate_items, ICollection< int > ignore_items, int num_predictions, TextWriter writer, IMapping user_mapping, IMapping item_mapping) |
| Write item predictions (scores) for a given user to a TextWriter object More...
|
|
Class that contains static methods for item prediction
static void WritePredictions |
( |
this IRecommender |
recommender, |
|
|
IPosOnlyFeedback |
train, |
|
|
IList< int > |
candidate_items, |
|
|
int |
num_predictions, |
|
|
string |
filename, |
|
|
IList< int > |
users = null , |
|
|
IMapping |
user_mapping = null , |
|
|
IMapping |
item_mapping = null , |
|
|
bool |
repeated_items = false |
|
) |
| |
|
inlinestatic |
Write item predictions (scores) to a file
- Parameters
-
recommender | the IRecommender to use for making the predictions |
train | a user-wise IPosOnlyFeedback containing the items already observed |
candidate_items | list of candidate items |
num_predictions | number of items to return per user, -1 if there should be no limit |
filename | the name of the file to write to |
users | a list of users to make recommendations for |
user_mapping | an IMapping object for the user IDs |
item_mapping | an IMapping object for the item IDs |
repeated_items | true if items that a user has already accessed shall also be predicted |
static void WritePredictions |
( |
this IRecommender |
recommender, |
|
|
IPosOnlyFeedback |
train, |
|
|
ICollection< int > |
candidate_items, |
|
|
int |
num_predictions, |
|
|
TextWriter |
writer, |
|
|
IList< int > |
users = null , |
|
|
IMapping |
user_mapping = null , |
|
|
IMapping |
item_mapping = null , |
|
|
bool |
repeated_items = false |
|
) |
| |
|
inlinestatic |
Write item predictions (scores) to a TextWriter object
- Parameters
-
recommender | the IRecommender to use for making the predictions |
train | a user-wise IPosOnlyFeedback containing the items already observed |
candidate_items | list of candidate items |
num_predictions | number of items to return per user, -1 if there should be no limit |
writer | the TextWriter to write to |
users | a list of users to make recommendations for; if null, all users in train will be provided with recommendations |
user_mapping | an IMapping object for the user IDs |
item_mapping | an IMapping object for the item IDs |
repeated_items | true if items that a user has already accessed shall also be predicted |
static void WritePredictions |
( |
this IRecommender |
recommender, |
|
|
int |
user_id, |
|
|
ICollection< int > |
candidate_items, |
|
|
ICollection< int > |
ignore_items, |
|
|
int |
num_predictions, |
|
|
TextWriter |
writer, |
|
|
IMapping |
user_mapping, |
|
|
IMapping |
item_mapping |
|
) |
| |
|
inlinestatic |
Write item predictions (scores) for a given user to a TextWriter object
- Parameters
-
recommender | the IRecommender to use for making the predictions |
user_id | ID of the user to make recommendations for |
candidate_items | list of candidate items |
ignore_items | list of items for which no predictions should be made |
num_predictions | the number of items to return per user, -1 if there should be no limit |
writer | the TextWriter to write to |
user_mapping | an IMapping object for the user IDs |
item_mapping | an IMapping object for the item IDs |
The documentation for this class was generated from the following file:
- ItemRecommendation/Extensions.cs