Skip to content

Instantly share code, notes, and snippets.

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 CESARDELATORRE/38182e5f86e9df69e5dcf2f83936b2f5 to your computer and use it in GitHub Desktop.
Save CESARDELATORRE/38182e5f86e9df69e5dcf2f83936b2f5 to your computer and use it in GitHub Desktop.
There are many more breaking changes in 0.9, but these are the ones that mostly the ML.NET samples faced when moving to v0.9:
1. MakePredictionFunction() --> CreatePredictionEngine() --> Based on my original feedback and this [issue](https://github.com/dotnet/machinelearning/issues/1761), since it creates an object, not a function..
2. The type or namespace name 'Microsoft.ML.Runtime' does not exist in the namespace 'Microsoft.ML' (Error: are you missing an assembly reference?)
a. Data attributes are now in: using Microsoft.ML.Data;
b. TextLoader and other types moved to using Microsoft.ML.Data;
c. Related, removed:
using Microsoft.ML.Runtime.Learners;
using Microsoft.ML.Runtime.Data;
3. mlContext.Data.TextReader --> mlContext.Data.CreateTextReader()
4.
5. RegressionEvaluator.Result -> Microsoft.ML.Data.RegressionMetrics
6. BinaryClassifierEvaluator.Result --> Type is now Microsoft.ML.Data.CalibratedBinaryClassificationMetrics
7. MultiClassClassifierEvaluator.Metrics --> Type is now Microsoft.ML.Data.MultiClassClassifierMetrics
ClusteringEvaluator.Result --> Type is now ClusteringMetrics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment