Try .NET on Azure for free
Get started with 12 months of free services and build .NET cloud apps with your Azure free account.

ML.NET Tutorial - Get started in 10 minutes

Download and install

Model Builder ships with Visual Studio version 16.6.1 and later versions when you install one of the .NET workloads. Make sure to have the ML.NET Model Builder component checked in the installer when you download or modify Visual Studio:

Model Builder component in Visual Studio Installer.

Enable Preview Feature

ML.NET Model Builder is currently a Preview feature. So, in order to use the tool, you must go to Tools > Options > Environment > Preview Features and enable ML.NET Model Builder:

Enable Model Builder as a Preview Feature.

Install .NET SDK

To build .NET apps, you need to download and install the .NET Core 3.1 SDK (Software Development Kit).

Install ML.NET CLI

The ML.NET command-line interface (CLI), provides tools for building machine learning models with ML.NET.

Note: ML.NET CLI is currently in Preview.

Once you've installed the .NET SDK, open a new terminal and run the following command:

Command prompt
dotnet tool install -g mlnet

If the tool installs successfully, you should see the following message:

Command prompt
dotnet tool install -g mlnet

You can invoke the tool using the following command: mlnet
Tool 'mlnet' (version '16.1.1') was successfully installed.

Note: If you're using a console other than Bash, then you'll need to give mlnet executable permissions and include mlnet to the system path.

If the command still gives you an error, use the I ran into an issue button below to get help fixing the problem.