Skip to content

Instantly share code, notes, and snippets.

Created Jan 12, 2019
What would you like to do?
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