Microsoft ML.NET 2 Adds Text Classification API
Written by Kay Ewbank   
Tuesday, 29 November 2022

Microsoft has released a new version of ML.NET, its cross-platform, open source machine learning framework for .NET developers. The new version 2.0 adds a text classification API. A new version of Model Builder has also been released,

Developers can use ML.NET to develop custom AI machine learning models that can then be included in their apps. You can create and use machine learning models targeting common tasks such as classification, regression, clustering, ranking, recommendations and anomaly detection. It supports deep-learning frameworks such as TensorFlow and interoperability through ONNX.

mlnet

ML.NET includes Infer.NET as 'part of the ML.NET family'. Infer.NET is a cross-platform framework for running Bayesian inference in graphical models that can also be used for probabilistic programming.

The new version adds a Text Classification scenario in Model Builder powered by the ML.NET Text Classification API. The API was released in preview a few months ago.

model builder scenarios 2 0

It can be used to train custom models that classify raw text data. It does so by integrating a TorchSharp implementation of NAS-BERT into ML.NET. Using a pre-trained version of this model, the Text Classification API uses your data to fine-tune the model.

The new release also adds a new API for sentence similarity that uses the same underlying TorchSharp NAS-BERT model as the Text Classification API. The main difference is that instead of predicting a category, the model calculates a numerical value that represents how similar two phrases are. 

Alongside the improvements to ML.NET, there are new options in Model Builder. There are now advanced training options that can be used to choose which trainers you want to use, and also choose the evaluation metric you want to optimize.

ML.NET 2 is available now. 

mlnet

More Information

ML.NET

Related Articles

Machine Learning For .NET

Infer.NET Machine Learning Framework Now Open Source  

Azure Machine Learning Service Goes Live

Machine Learning Goes Azure - Azure ML Announced

  

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Facebook or Linkedin.

Banner


Google Keeps Iron Grip On Play Store
07/01/2026

The judges may keep telling the walled gardeners that they have to free things up and throw a few doors open, but they in turn keep finding ways to keep their walls as high as they can get away with.

 [ ... ]



AI - It's All Downhill From Here?
31/12/2025

AI is a complex beast, but it is based on some very simple and very powerful ideas that deserve to be better known as they throw much light not only on the way AI works but on the way the universe wor [ ... ]


More News

pico book

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Tuesday, 29 November 2022 )