Model Builder ships with Visual Studio version 16.6.1 and later versions when you install one of the .NET workloads but this tutorial is based on Visual Studio version 16.10.4.
Open the Visual Studio Installer and Modify the instance of Visual Studio that you'd like to use with Model Builder.
Select the optional ML.NET Model Builder (Preview) component in any of the .NET workloads (such as .NET cross-platform development).
ML.NET Model Builder is currently a Preview feature. So, you must enable this Preview feature in Visual Studio in order to use the tool.
In Visual Studio, go to Tools > Options > Environment > Preview Features.
Select Enable ML.NET Model Builder.
To build .NET apps, you need to download and install the .NET Core 3.1 SDK (Software Development Kit).
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:
dotnet tool install -g mlnet
If the tool installs successfully, you should see the following output message:
You can invoke the tool using the following command: mlnet Tool 'mlnet' (version '16.2.0') was successfully installed.
Note: If you're using a console other than Bash (for example, zsh, which is the new default for macOS), then you'll need to give
mlnet executable permissions and include
mlnet to the system path. Instructions on how to do this should appear in the terminal when you install mlnet (or any global tool).
Alternatively, you can try using the following command to run the mlnet tool:
If the command still gives you an error, use the
I ran into an issue button below to report the issue and get help fixing the problem.