Skip to content

Instantly share code, notes, and snippets.

@Belgian-Coder
Created Jan 12, 2019
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