Microsoft Updates ML.NET Machine Learning Framework

Microsoft has updated ML.NET, its cross-platform, open source machine learning framework for .NET developers, as it asks for input on a major API revamp.

ML.NET was introduced in May at the company's Build developer conference to help .NET coders get in on cutting-edge machine learning programming without having to learn the underlying technical details associated with creating and tuning ML models.

One benefit to Visual Studio coders is the ability to work with ML models in native .NET languages like C#, "without having to learn and use Python," as one developer said in comments section of the announcement post.

Now, the company has announced ML.NET 0.4, featuring new functionality and numerous bug fixes. On top of that, Microsoft is seeking feedback to further improve the framework.

ML.NET APIs at the Time of the Original Announcement
[Click on image for larger view.] ML.NET APIs at the Time of the Original Announcement (source: Microsoft).

"We are working on a new API which improves flexibility and ease of use," says a blog post published yesterday (Aug. 7). "When the new API is ready and good enough, we plan to deprecate the current 'pipeline' API. Because this will be a significant change we want to share our proposals for the multiple API options and comparisons in a future blog post and start an open discussion with you where you can provide your feedback and help shape the long-term API for ML.NET."

In the meantime, here's a rundown of some new features:

  • Word Embeddings Transform for Text Scenarios. This allows the use of existing word embeddings, which map words in text to numeric vectors to help capture the meanings of words for visualization or model training. These existing -- or pretrained -- models alleviate the burden of developers having to create and train their own models.
  • SymSGD Learner for Binary Classification. This improves on the SGD algorithm. SGD stands for stochastic gradient descent, described by Wikipedia as "a popular algorithm for training a wide range of models in machine learning, including (linear) support vector machines, logistic regression (see, e.g., Vowpal Wabbit) and graphical models." While Microsoft said SGD is well-known and effective for various machine learning problems, it suffers from scalability problems, and the addition of SymSGD addresses that performance issue by leveraging mulithreading.
  • Improvements to F# API and samples for ML.NET. This furthers work to improve the F# story for ML.NET, which has been lacking in certain respects, such as support for F# records. The ongoing project to better F# programming with ML.NET sees v0.4 allowing the use of property-based row classes in F#. With this work, the .NET machine learning samples source code repos have been updated.

Other planned work on the project, according to its Web site, includes adding support for machine learning tools and frameworks including Light GBM, Accord.NET, CNTK and TensorFlow.

Developers can get started with the open source ML.NET preview -- which works on Windows, Linux and macOS -- with this 10-minute tutorial.

About the Author

David Ramel is an editor and writer for Converge360.

comments powered by Disqus


  • Entity Framework Core 6: What Developers Want

    Microsoft outlined its plan for Entity Framework Core 6, which in November will take its place as the data access component of the landmark .NET 6, a long-term support (LTS) release that will mark Microsoft's transition from the Windows-only .NET Framework to an open source, cross-platform umbrella offering of all things .NET.

  • AWS Open Sources .NET Porting Assistant GUI

    After previously open sourcing components of its Porting Assistant for .NET, Amazon Web Services open sourced the tool's GUI.

  • .NET Core Ranks High Among Frameworks in New Dev Survey

    .NET Core placed high in a web-dominated ranking of development frameworks published by CodinGame, which provides a tech hiring platform.

  • Here's a One-Stop Shop for .NET 5 Improvements

    Culled from reams of Microsoft documentation, here's a high-level summary of what's new for performance, networking, diagnostics and more, along with links to the nitty-gritty details for those wanting to dig in more.

Upcoming Events