Skip to content

Instantly share code, notes, and snippets.

@Belgian-Coder
Created January 12, 2019 21:26
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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