From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
Original author(s).NET Foundation, Microsoft
Initial release7 May 2018; 12 months ago (2018-05-07)[1]
Stable release
1.1.0 / 4 June 2019; 2 days ago (2019-06-04)
Preview release
1.0.0 / 2 April 2019; 2 months ago (2019-04-02)
Written inC# and C++
Operating systemLinux, macOS, Windows[2]
TypeMachine learning library
LicenseMIT License[3]

ML.NET is a free software machine learning library for the C#, F# and VB.NET programming languages.[4][5][6] It also supports Python models when used together with NimbusML. The preview release of ML.NET included transforms for feature engineering like n-gram creation, and learners to handle binary classification, multi-class classification, and regression tasks.[7] Additional ML tasks like anomaly detection and recommendation systems have since been added, and other approaches like deep learning will be included in future versions.[8][9]

Machine learning[edit]

ML.NET brings model-based Machine Learning analytic and prediction capabilities to existing .NET developers. The framework is built upon .NET Core and .NET Standard inheriting the ability to run cross-platform on Linux, Windows and macOS. Although the ML.NET framework is new, its origins began in 2002 as a Microsoft Research project named TMSN (text mining search and navigation) for use internally within Microsoft products. It was later renamed to TLC (the learning code) around 2011. ML.NET was derived from the TLC library and has largely surpassed its parent says Dr. James McCaffrey, Microsoft Research. [10]

Developers can train a Machine Learning Model or reuse an existing Model by a 3rd party and run it on any environment offline. This means developers do not need to have a background in Data Science to use the framework. Support for the open-source Open Neural Network Exchange (Onnx) Deep Learning model format was introduced from build 0.3 in ML.NET. The release included other notable enhancements such as Factorization Machines, LightGBM, Ensembles, LightLDA transform and OVA. [11] The ML.NET integration of TensorFlow is enabled from the 0.5 release. Support for x86 & x64 applications was added to build 0.7 including enhanced recommendation capabilities with Matrix Factorization. [12]. A full roadmap of planned features have been made available on the official GitHub repo. [13]

The first stable 1.0 release of the framework was announced at Build (developer conference) 2019. It included the addition of a Model Builder tool and AutoML (Automated Machine Learning) capabilities. [14]

Model builder[edit]

The ML.NET CLI is a Command-line interface which uses ML.NET AutoML to perform model training and pick the best algorithm for the data. The ML.NET Model Builder preview is an extension for Visual Studio that uses ML.NET CLI and ML.NET AutoML to output the best ML.NET Model using a GUI.[14]

Model explainability[edit]

AI fairness and explainability has been an area of debate for AI Ethicists in recent years. [15] A major issue for Machine Learning applications is the black box effect where end users and the developers of an application are unsure of how an algorithm came to a decision or whether the dataset contains bias. [16] Build 0.8 included model explainability API's that had been used internally in Microsoft. It added the capability to understand the feature importance of models with the addition of 'Overall Feature Importance' and 'Generalized Additive Models'.

When there are several variables that contribute to the overall score, it is possible to see a breakdown of each variable and which features had the most impact on the final score. The official documentation demonstrates that the scoring metrics can be output for debugging purposes. During training & debugging of a model, developers can preview and inspect live filtered data. This is possible using the Visual Studio DataView tools. [17]


Microsoft Research announced the popular Infer.NET model-based machine learning framework used for research in academic institutions since 2008 has been released open source and is now part of the ML.NET framework.[18] The Infer.NET framework utilises probabilistic programming to describe probabilistic models which has the added advantage of interpretability. The Infer.NET namespace has since been changed to Microsoft.ML.Probabilistic consistent with ML.NET namespaces.[19]

NimbusML Python support[edit]

Microsoft acknowledged that the Python programming language is popular with Data Scientists, so it has introduced NimbusML the experimental Python bindings for ML.NET. This enables users to train and use machine learning models in Python. It was made open source similar to Infer.NET.[12]

Machine learning in the browser[edit]

ML.NET allows users to export trained models to the Open Neural Network Exchange (Onnx) format. [20] This establishes an opportunity to use models in different environments that don't use ML.NET. It would be possible to run these models in the client side of a browser using ONNX.js, a javascript client-side framework for deep learning models created in the Onnx format. [21]

AI School Machine Learning Course[edit]

Along with the rollout of the ML.NET preview, Microsoft rolled out free AI tutorials and courses to help developers understand techniques needed to work with the framework. [22] [23] [24]

See also[edit]


  1. ^ Ankit Asthana (2017-05-07). "Introducing ML.NET: Cross-platform, Proven and Open Source Machine Learning Framework". Retrieved 2018-05-10.
  2. ^ "ML.NET: Machine Learning made for .NET". Microsoft. Retrieved 11 May 2018.
  3. ^ at master · DotNet/MachineLearning
  4. ^ David Ramel (2018-05-08). "Open Source, Cross-Platform ML.NET Simplifies Machine Learning -- Visual Studio Magazine". Visual Studio Magazine. Retrieved 2018-05-10.
  5. ^ Kareem Anderson (2017-05-09). "Microsoft debuts ML.NET cross-platform machine learning framework". On MSFT. Retrieved 2018-05-10.
  6. ^ Ankit Asthana (2018-08-07). "Announcing ML.NET 0.4". Retrieved 2018-08-08.
  7. ^ Gal Oshri (2018-05-06). "ML.NET 0.1 Release Notes". GitHub. Retrieved 2018-05-10.
  8. ^ Tiwari, Aditya (2018-05-08). "Microsoft Launches ML.NET Open Source Machine Learning Framework". Fossbytes. Retrieved 2018-05-10. Over time, it will enable other ML tasks like anomaly detection, recommendation system, and other approaches like deep learning using the benefits of added libraries.
  9. ^ "Machine learning tasks in ML.NET". Microsoft. Retrieved 26 December 2018.
  10. ^ James McCaffrey (2018-12-19). "ML.NET: The Machine Learning Framework for .NET Developers". MSDN Magazine Connect() Special Issue 2018. Retrieved 2019-01-09. Even though the ML.NET library is new, its origins go back many years. Shortly after the introduction of the Microsoft .NET Framework in 2002, Microsoft Research began a project called TMSN (“text mining search and navigation”) to enable software developers to include ML code in Microsoft products and technologies. The project was very successful, and over the years grew in size and usage internally at Microsoft. Somewhere around 2011 the library was renamed to TLC (“the learning code”). TLC is widely used within Microsoft and is currently in version 3.10. The ML.NET library is a descendant of TLC, with Microsoft-specific features removed. I’ve used both libraries and, in many ways, the ML.NET child has surpassed its parent.
  11. ^ "Release Microsoft ML.NET v0.3". Github. 2018-07-03. Retrieved 2018-07-03.
  12. ^ a b "Announcing ML.NET 0.7 (Machine Learning .NET)". Microsoft. 2018-11-08. Retrieved 2018-11-14.
  13. ^ "The ML.NET Roadmap". Github. 2018-05-09. Retrieved 2018-06-30.
  14. ^ a b "Announcing ML.NET 1.0". Microsoft. 2019-05-06. Retrieved 2019-05-07.
  15. ^ "Artificial Intelligence Can Reinforce Bias, Cloud Giants Announce Tools For AI Fairness". Forbes. 2018-09-24. Retrieved 2018-12-05.
  16. ^ "What it means to open AI's black box". PwC. 2018-05-15. Retrieved 2018-12-05.
  17. ^ "Announcing ML.NET 0.8 – Machine Learning for .NET". Microsoft. 2018-12-04. Retrieved 2018-12-05.
  18. ^ "Microsoft open-sources Infer.NET AI code just in time for the weekend". The Register. 2018-10-05. Retrieved 2018-10-31.
  19. ^ "Microsoft open sources Infer.NET, its popular model-based machine learning framework". Packt. 2018-10-08. Retrieved 2018-10-31.
  20. ^ "ML.NET – Export Machine Learning.Net models to ONNX format". El Bruno. 2018-07-11. Retrieved 2019-01-09.
  21. ^ "ONNX.js: Universal Deep Learning Models in The Browser". Will Badr. 2019-01-08. Retrieved 2019-01-09.
  22. ^ "AI School". Microsoft AI. 2018-05-07. Retrieved 2018-06-29.
  23. ^ "ML.NET Guide". Microsoft. 2018-05-07. Retrieved 2018-06-29.
  24. ^ "Infer.NET User Guide". Infer.NET. 2018-10-05. Retrieved 2018-10-31.

External links[edit]