DEV Community

Cover image for ML.NET Cat vs Dog
Pablito Piova
Pablito Piova

Posted on

5

ML.NET Cat vs Dog

ML.NET Model Builder is an intuitive graphical Visual Studio extension to build, train, and deploy custom machine learning models.
Model Builder uses automated machine learning (AutoML) to explore different machine learning algorithms and settings to help you find the one that best suits your scenario.

-Select Image Classification Scenario

Image description

-Select Trainning Environment

Image description

-Once you have chosen your scenario, Model Builder asks you to provide a dataset

Image description

-Train

Image description

-In my case, this training lasted a little over 4 hours

Image description

-Evaluate

Image description

Image description

Image description

-Consume

Image description

-Add solution ConsoleApp and WebApi

Image description

OPEN PowerShell and Test your WebAPI
$body = @{ImageSource = "Image location on your local machine"
Invoke-RestMethod "https://localhost:'PORT'/predict" -Method Post -Body ($body | ConvertTo-Json) -ContentType "application/json"

And that's it, in simple steps we create and consume a Machine Learning model. In the Documentation links you will see how to install the Model Builder extension in Visual Studio and everything related to ML.NET.

Happy coding!

Pablo Piovano.


DataSet: https://www.kaggle.com/muhammadshahzadkhan/dogvscat

ML.NET Documentation

GitHub: https://lnkd.in/duBTphVJ

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay