News

Open Source, Cross-Platform ML.NET Simplifies Machine Learning

Microsoft's ongoing Build developer conference is all about artificial intelligence, and one new offering met enthusiastically by attendees is ML.NET, an open source, cross-platform machine learning framework.

The idea is to help .NET developers get in on cutting-edge ML programming without having to learn the underlying technical details associated with creating and tuning machine learning 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.

The new framework was originally developed at Microsoft Research (which is, by the way, the workplace of our own columnist Dr. James McCaffrey, who writes Visual Studio Magazine's The Data Science Lab, frequently exploring the complexity of training ML models) and was launched as part of the .NET Foundation.

Designed to complement ML and AI development with the company's existing tools such as Azure Machine Learning and Cognitive Services, the early preview will in time receive more capabilities.

ML.NET APIs
[Click on image for larger view.] ML.NET APIs (source: Microsoft).

"With this first preview release, ML.NET enables ML tasks like classification (e.g. text categorization and sentiment analysis) and regression (e.g. forecasting and price prediction)," Microsoft said. "Along with these ML capabilities, this first release of ML.NET also brings the first draft of .NET APIs for training models, using models for predictions, as well as the core components of this framework, such as learning algorithms, transforms, and core ML data structures."

Future supported scenarios, the company said, will include recommendation systems and anomaly detection. Deep learning functionality is also on tap, as it's planned to work with libraries such as TensorFlow, Caffe2 and CNTK, along with general machine learning libraries such as Accord.NET.

Along with additional ML tasks and scenarios and the TensorFlow and CNTK deep learning support, future plans include:

  • ONNX support
  • Scale-out on Azure
  • Better GUI to simplify ML tasks
  • Integration with VS Tools for AI
  • Language Innovation for .NET

The v0.1 release, whose source code is available on GitHub, works on any platform supporting 64-bit .NET Core, including Windows, Linux, and macOS. .NET Core 2.0 needs to be installed to work with the new framework. More information can be found in the full release notes and a developer guide.

As noted, several readers of the announcement post enthusiastically welcomed the new release. "Now in our latest project, we are building a separate web-service on Python to deal with such kind of AI/ML/NLP tasks (text processing, classification, etc.)," said one. "Hope it will be possible to switch to .NET for those tasks in the nearest feature."

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Hands On: New VS Code Insiders Build Creates Web Page from Image in Seconds

    New Vision support with GitHub Copilot in the latest Visual Studio Code Insiders build takes a user-supplied mockup image and creates a web page from it in seconds, handling all the HTML and CSS.

  • Naive Bayes Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the naive Bayes regression technique, where the goal is to predict a single numeric value. Compared to other machine learning regression techniques, naive Bayes regression is usually less accurate, but is simple, easy to implement and customize, works on both large and small datasets, is highly interpretable, and doesn't require tuning any hyperparameters.

  • VS Code Copilot Previews New GPT-4o AI Code Completion Model

    The 4o upgrade includes additional training on more than 275,000 high-quality public repositories in over 30 popular programming languages, said Microsoft-owned GitHub, which created the original "AI pair programmer" years ago.

  • Microsoft's Rust Embrace Continues with Azure SDK Beta

    "Rust's strong type system and ownership model help prevent common programming errors such as null pointer dereferencing and buffer overflows, leading to more secure and stable code."

  • Xcode IDE from Microsoft Archrival Apple Gets Copilot AI

    Just after expanding the reach of its Copilot AI coding assistant to the open-source Eclipse IDE, Microsoft showcased how it's going even further, providing details about a preview version for the Xcode IDE from archrival Apple.

Subscribe on YouTube

Upcoming Training Events