Visual Studio Code is an excellent open source text editor.You can use it for developing different types of applications such as Python applications and .NET applications.
ML.NET is an open source framework for developing Machine Learning applications using .NET framework.You can use C# for developing ML.NET applications.
You can develop ML.NET applications using Visual Studio or Visual Studio Code.
Using Visual Studio Code for creating ML.NET application.
For creating ML.NET application in Visual Studio Code follow the below instructions:
add reference to ML NUGET package using the following command.ML.NET is used as a set of Nugets in a application.
dotnet add package Microsoft.ML
When the above command completes successfully you will see the following message:
info : Writing lock file to disk. Path: "..path" log : Restore completed in 19.39 sec for "..path\MLSampleApp\MLSampleApp.csproj.
Now ML.NET package has been installed and you can start developing ML.NET applications.
Open Project in Visual Studio Code Now we will open the MLSampleApp folder which consists of the above generated files
Now in Start method enter the following line:
var pipeline = new LearningPipeline();
Now run the sample application by selecting debug start debugging(F5 key).Compiler will automatically try to install the missing packages and you will get the following message.Your application should launch after the packages are restored.
Restore completed in 10.38 sec