Closed GalOshri closed 5 years ago
Currently for scoring you need to use a LegacyPipeline. This is because model is saved in the old format. Changes are required on ML.NET side to save model in new format through entrypoints.
var pipeline = new Legacy.LearningPipeline(); var loadedModel = await Legacy.PredictionModel.ReadAsync<InfertData, InfertPrediction>(modelName); loadedModel.Predict(..)
See scoring example here: https://review.docs.microsoft.com/en-us/nimbusml/loadsavemodels?branch=smoke-test#scoring-in-mlnet
Will be solved by this ML.NET issue: https://github.com/dotnet/machinelearning/issues/1104
this is solved
Expected: model can be used in ML.NET Actual: I see the error shown below.
Python training code:
ML.NET prediction code: