Microsoft.ML 4.0.0-preview.24271.1

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 (119)

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

Package Downloads

ML.NET component for LightGBM


ML.NET component for FastTree


ML.NET component for Image support


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 4,213 5/21/2024
4.0.0-preview.24162.2 4,232 3/13/2024
3.0.1 383,488 1/18/2024
3.0.0 95,490 11/27/2023
3.0.0-preview.23511.1 3,425 10/13/2023
3.0.0-preview.23266.6 44,428 5/17/2023
3.0.0-preview.22621.2 8,774 12/22/2022
2.0.1 792,574 2/1/2023
2.0.1-preview.22573.9 3,123 11/24/2022
2.0.0 223,793 11/8/2022
2.0.0-preview.22551.1 1,081 11/1/2022
2.0.0-preview.22313.1 15,849 6/14/2022
2.0.0-preview.22310.1 373 6/11/2022
1.7.1 1,225,321 3/9/2022
1.7.0 499,793 11/9/2021 1,258 10/22/2021
1.6.0 700,181 7/15/2021
1.5.5 466,495 3/4/2021
1.5.4 127,172 12/17/2020
1.5.2 375,436 9/11/2020
1.5.1 95,233 7/11/2020
1.5.0 161,265 5/27/2020
1.5.0-preview2 68,461 3/12/2020
1.5.0-preview 75,808 12/26/2019
1.4.0 534,583 11/5/2019
1.4.0-preview2 30,632 10/8/2019
1.4.0-preview 71,762 8/30/2019
1.3.1 235,745 8/6/2019
1.2.0 81,181 7/3/2019
1.1.0 42,059 6/4/2019
1.0.0 154,486 5/2/2019
1.0.0-preview 23,487 4/2/2019
0.11.0 40,855 3/5/2019
0.10.0 46,709 2/5/2019
0.9.0 46,201 1/8/2019
0.8.0 22,600 12/4/2018
0.7.0 34,075 11/6/2018
0.6.0 19,499 10/2/2018
0.5.0 10,139 9/5/2018
0.4.0 69,544 8/7/2018
0.3.0 19,091 7/3/2018
0.2.0 8,397 6/5/2018
0.1.0 23,348 5/7/2018