Skip to content

Instantly share code, notes, and snippets.

Created Dec 3, 2019
What would you like to do?
MovieRecommender: SaveModel code
public static void SaveModel(MLContext mlContext, DataViewSchema trainingDataViewSchema, ITransformer model)
var data = Path.Combine(Environment.CurrentDirectory, "Data");
var modelPath = Path.Combine(data, "");
Console.WriteLine("=============== Saving the model to a file ===============");
mlContext.Model.Save(model, trainingDataViewSchema, modelPath);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment