ML.NET 1.3.1
New Features
-
Deep Neural Networks Training (PREVIEW) (#4057)
Introduces in-preview 0.15.1Microsoft.ML.DNN
package that enables full DNN model retraining and transfer learning in .NET using C# bindings for tensorflow provided by Tensorflow .NET. The goal of this package is to allow high level DNN training and scoring tasks such as image classification, text classification, object detection, etc using simple yet powerful APIs that are framework agnostic but currently they only uses Tensorflow as the backend. The below APIs are in early preview and we hope to get customer feedback that we can incorporate in the next iteration.public static DnnEstimator RetrainDnnModel( this ModelOperationsCatalog catalog, string[] outputColumnNames, string[] inputColumnNames, string labelColumnName, string tensorFlowLabel, string optimizationOperation, string modelPath, int epoch = 10, int batchSize = 20, string lossOperation = null, string metricOperation = null, string learningRateOperation = null, float learningRate = 0.01f, bool addBatchDimensionInput = false, DnnFramework dnnFramework = DnnFramework.Tensorflow) public static DnnEstimator ImageClassification( this ModelOperationsCatalog catalog, string featuresColumnName, string labelColumnName, string outputGraphPath = null, string scoreColumnName = "Score", string predictedLabelColumnName = "PredictedLabel", string checkpointName = "_retrain_checkpoint", Architecture arch = Architecture.InceptionV3, DnnFramework dnnFramework = DnnFramework.Tensorflow, int epoch = 10, int batchSize = 20, float learningRate = 0.01f, bool measureTrainAccuracy = false)
-
Database Loader (PREVIEW) (#4035)
Introduces Database loader that enables training on databases. This loader supports any relational database supported by System.Data in .NET Framework or .NET Core, meaning that you can use many RDBMS such as SQL Server, Azure SQL Database, Oracle, PostgreSQL, MySQL, etc. This feature is in early preview and can be accessed viaMicrosoft.ML.Experimental
nuget.public static DatabaseLoader CreateDatabaseLoader(this DataOperationsCatalog catalog, params DatabaseLoader.Column[] columns)
Bug Fixes
Serious
-
SaveOnnxCommand appears to ignore predictors when saving a model to ONNX format: This broke export to ONNX functionality. (3974)
-
Unable to use fasterrcnn onnx model. (3963)
-
PredictedLabel is always true for Anomaly Detection: This bug disabled scenarios like fraud detection using binary classification/PCA. (#4039)
-
Update build certifications: This bug broke the official builds because of outdated certificates that were being used. (#4059)
Other
- Stop LightGbm Warning for Default Metric Input: Fixes warning, LightGBM
Warning Unknown parameter metric=
is produced when the default metric is used. (#3965)
Samples
Breaking Changes
None
Enhancements
CLI and AutoML API
- Bug fixes.
Remarks
- Machine Learning at Microsoft with ML.NET is presented at KDD 2019 Proceedings