Skip to content

Instantly share code, notes, and snippets.

@icebeam7
Created December 3, 2019 15:02
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 icebeam7/3fe172620882d3808e3c066ba3849078 to your computer and use it in GitHub Desktop.
Save icebeam7/3fe172620882d3808e3c066ba3849078 to your computer and use it in GitHub Desktop.
MovieRecommender: Main code
static void Main(string[] args)
{
var mlContext = new MLContext();
(IDataView trainingDataView, IDataView testDataView) = LoadData(mlContext);
ITransformer model = BuildTrainModel(mlContext, trainingDataView);
EvaluateModel(mlContext, testDataView, model);
UseModelForSinglePrediction(mlContext, model);
SaveModel(mlContext, trainingDataView.Schema, model);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment