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

  • Creating Reactive Applications in .NET

    In modern applications, data is being retrieved in asynchronous, real-time streams, as traditional pull requests where the clients asks for data from the server are becoming a thing of the past.

  • AI for GitHub Collaboration? Maybe Not So Much

    No doubt GitHub Copilot has been a boon for developers, but AI might not be the best tool for collaboration, according to developers weighing in on a recent social media post from the GitHub team.

  • Visual Studio 2022 Getting VS Code 'Command Palette' Equivalent

    As any Visual Studio Code user knows, the editor's command palette is a powerful tool for getting things done quickly, without having to navigate through menus and dialogs. Now, we learn how an equivalent is coming for Microsoft's flagship Visual Studio IDE, invoked by the same familiar Ctrl+Shift+P keyboard shortcut.

  • .NET 9 Preview 3: 'I've Been Waiting 9 Years for This API!'

    Microsoft's third preview of .NET 9 sees a lot of minor tweaks and fixes with no earth-shaking new functionality, but little things can be important to individual developers.

  • Data Anomaly Detection Using a Neural Autoencoder with C#

    Dr. James McCaffrey of Microsoft Research tackles the process of examining a set of source data to find data items that are different in some way from the majority of the source items.

Subscribe on YouTube