Skip to content

Instantly share code, notes, and snippets.

@Belgian-Coder
Created January 12, 2019 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Belgian-Coder/f064250b5d42404d8c25274bc17b400d to your computer and use it in GitHub Desktop.
Save Belgian-Coder/f064250b5d42404d8c25274bc17b400d to your computer and use it in GitHub Desktop.
Ordina-ML.Net_Recommender_System
var pipeline = mlContext.Transforms.Conversion.MapValueToKey(Labels.User, Labels.UserEncoded)
.Append(mlContext.Transforms.Conversion.MapValueToKey(Labels.BookId, Labels.BookIdEncoded))
.Append(new MatrixFactorizationTrainer(mlContext, Labels.UserEncoded, Labels.BookIdEncoded, Labels.Label,
advancedSettings: s =>
{
s.NumIterations = 50;
s.K = 500;
s.NumThreads = 1;
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment