Microsoft.ML 4.0.0-preview.24271.1

The ID prefix of this package has been reserved for one of the owners of this package by Prefix Reserved
This is a prerelease version of Microsoft.ML.
dotnet add package Microsoft.ML --version 4.0.0-preview.24271.1
NuGet\Install-Package Microsoft.ML -Version 4.0.0-preview.24271.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.ML" Version="4.0.0-preview.24271.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Microsoft.ML --version 4.0.0-preview.24271.1
#r "nuget: Microsoft.ML, 4.0.0-preview.24271.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Microsoft.ML as a Cake Addin
#addin nuget:?package=Microsoft.ML&version=4.0.0-preview.24271.1&prerelease

// Install Microsoft.ML as a Cake Tool
#tool nuget:?package=Microsoft.ML&version=4.0.0-preview.24271.1&prerelease


ML.NET is a cross-platform open-source machine learning framework which makes machine learning accessible to .NET developers.

For more information, see the ML.NET documentation.

Key Features

  • Classification/Categorization - Automatically divide customer feedback into positive and negative categories
  • Regression/Predict continuous values - Predict the price of houses based on size and location
  • Anomaly Detection - Detect fraudulent banking transactions
  • Recommendations - Suggest products that online shoppers may want to buy, based on their previous purchases
  • Time series/sequential data - Forecast the weather/product sales
  • Image classification - Categorize pathologies in medical images
  • Text classification - Categorize documents based on their content.
  • Sentence similarity - Measure how similar two sentences are.

How to Use

See Machine Learning Samples for an assortment of samples that show how to get started using ML.NET.

Main Types

Some of the types provided by this library are:

  • Microsoft.ML.MLContext
  • Microsoft.ML.ITransformer
  • Microsoft.ML.IEstimator<TTransformer>

Additional Documentation

Feedback & Contributing

Microsoft.ML is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (114)

Showing the top 5 NuGet packages that depend on Microsoft.ML:

Package Downloads
Microsoft.ML.LightGbm The ID prefix of this package has been reserved for one of the owners of this package by

ML.NET component for LightGBM

Microsoft.ML.FastTree The ID prefix of this package has been reserved for one of the owners of this package by

ML.NET component for FastTree

Microsoft.ML.ImageAnalytics The ID prefix of this package has been reserved for one of the owners of this package by

ML.NET component for Image support

Microsoft.ML.TensorFlow The ID prefix of this package has been reserved for one of the owners of this package by

Microsoft.ML.TensorFlow contains ML.NET integration of TensorFlow.


Catalyst is a Natural Language Processing library built from scratch for speed. Inspired by spaCy's design, it brings pre-trained models, out-of-the box support for training word and document embeddings, and flexible entity recognition models. You can install language-specific models with the model packages Catalyst.Models.[Language], like: Catalyst.Models.English.

GitHub repositories (35)

Showing the top 5 popular GitHub repositories that depend on Microsoft.ML:

Repository Stars
ML.NET is an open source and cross-platform machine learning framework for .NET.
Sample code referenced by the .NET documentation
Advanced real-time screen translator for games, hardcoded subtitles in videos, static text and etc.
.NET for Apache® Spark™ makes Apache Spark™ easily accessible to .NET developers.
This repo is for experimentation and exploring new ideas that may or may not make it into the main corefx repo.
Version Downloads Last updated
4.0.0-preview.24271.1 1,624 5/21/2024
4.0.0-preview.24162.2 3,729 3/13/2024
3.0.1 303,979 1/18/2024
3.0.0 87,469 11/27/2023
3.0.0-preview.23511.1 3,337 10/13/2023
3.0.0-preview.23266.6 43,533 5/17/2023
3.0.0-preview.22621.2 8,712 12/22/2022
2.0.1 767,534 2/1/2023
2.0.1-preview.22573.9 3,100 11/24/2022
2.0.0 218,863 11/8/2022
2.0.0-preview.22551.1 1,013 11/1/2022
2.0.0-preview.22313.1 15,809 6/14/2022
2.0.0-preview.22310.1 365 6/11/2022
1.7.1 1,207,447 3/9/2022
1.7.0 483,443 11/9/2021 1,252 10/22/2021
1.6.0 684,849 7/15/2021
1.5.5 459,030 3/4/2021
1.5.4 126,372 12/17/2020
1.5.2 371,744 9/11/2020
1.5.1 94,390 7/11/2020
1.5.0 159,465 5/27/2020
1.5.0-preview2 67,956 3/12/2020
1.5.0-preview 75,651 12/26/2019
1.4.0 530,265 11/5/2019
1.4.0-preview2 30,599 10/8/2019
1.4.0-preview 71,700 8/30/2019
1.3.1 230,893 8/6/2019
1.2.0 80,902 7/3/2019
1.1.0 41,765 6/4/2019
1.0.0 153,161 5/2/2019
1.0.0-preview 23,414 4/2/2019
0.11.0 40,798 3/5/2019
0.10.0 46,099 2/5/2019
0.9.0 45,726 1/8/2019
0.8.0 22,569 12/4/2018
0.7.0 34,037 11/6/2018
0.6.0 19,437 10/2/2018
0.5.0 10,126 9/5/2018
0.4.0 69,485 8/7/2018
0.3.0 17,604 7/3/2018
0.2.0 8,374 6/5/2018
0.1.0 23,139 5/7/2018