News

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

Featured

  • Xamarin.Forms 5 Preview Ships Ahead of .NET 6 Transition to MAUI

    Microsoft shipped a pre-release version of Xamarin.Forms 5 ahead of a planned transition to MAUI, which will take over beginning with the release of .NET 6 in November 2021.

  • ML.NET Improves Object Detection

    Microsoft improved the object detection capabilities of its ML.NET machine learning framework for .NET developers, adding the ability to train custom models with Model Builder in Visual Studio.

  • More Improvements for VS Code's New Python Language Server

    Microsoft announced more improvements for the new Python language server for Visual Studio Code, Pylance, specializing in rich type information.

  • Death of the Dev Machine?

    Here's a takeaway from this week's Ignite 2020 event: An advanced Azure cloud portends the death of the traditional, high-powered dev machine packed with computing, memory and storage components.

  • COVID-19 Is Ignite 2020's Elephant in the Room: 'Frankly, It Sucks'

    As in all things of our new reality, there was no escaping the drastic changes in routine caused by the COVID-19 pandemic during Microsoft's big Ignite 2020 developer/IT pro conference, this week shifted to an online-only event after drawing tens of thousands of in-person attendees in years past.

Upcoming Events