ML.NET is a cross-platform, machine learning framework for .NET developers, and Model Builder is the UI tooling in Visual Studio that uses Automated Machine Learning (AutoML) to easily allow you to train and consume custom ML.NET models. With ML.NET and Model Builder, you can create custom machine learning models for scenarios like sentiment analysis, price prediction, and more without any machine learning experience!
This release of Model Builder comes with bug fixes and two exciting new features:
![](https://habrastorage.org/r/w1560/webt/vz/q-/uq/vzq-uqazx-xhzjcigy-bopwteoa.png)
We showed off this feature in .NET Conf to classify the weather in images as either sunny, cloudy, or rainy, and now you can locally train image classification models in Model Builder with your own images!
![](https://habrastorage.org/r/w1560/getpro/habr/post_images/d13/fbf/a56/d13fbfa56c560f022b6fe3e1af14ac10.png)
For example, say you have a dataset of images of dogs and cats, and you want to use those images to train an ML.NET model that classifies new images as «dog» or «cat.»
Your dataset must contain a parent folder with labelled subfolders for each category (e.g. a folder called Animals that contains two sub-folders: one named Dog, which contains training images of dogs, and one named Cat, which contains training images of cats):
![](https://habrastorage.org/r/w1560/getpro/habr/post_images/074/74b/504/07474b5045168c3942ad23f86e4d85ab.png)
You can use the Next Steps code and projects generated by Model Builder to easily consume the trained image classification model in your end-user application, just like with text scenarios.
After training a model in Model Builder, you can use the model to make predictions on sample input right in the UI for both text and image scenarios.
For instance, for the dog vs. cat image classification example, you could input an image and see the results in the Evaluate step of Model Builder:
![](https://habrastorage.org/r/w1560/getpro/habr/post_images/494/70a/f5d/49470af5d9dee46940eab26e537e74ff.png)
If you have a text scenario, like price prediction for taxi fare, you can also input sample data in the Try your model section:
![](https://habrastorage.org/r/w1560/getpro/habr/post_images/684/c68/d90/684c68d90352835834325b9451ffd628.png)
If you run into any issues, feel that something is missing, or really love something about ML.NET Model Builder, let us know by creating an issue in our GitHub repo.
Model Builder is still in Preview, and your feedback is super important in driving the direction we take with this tool!
You can download ML.NET Model Builder in the VS Marketplace (or in the Extensions menu of Visual Studio).
Learn more in the ML.NET Docs or get started with this tutorial.
Not currently using Visual Studio? Try out the ML.NET CLI (image classification not yet implemented).
ML.NET Model Builder
This release of Model Builder comes with bug fixes and two exciting new features:
- Image classification scenario – locally train image classification models with your own images
- Try your model – make predictions on sample input data right in the UI
![](https://habrastorage.org/webt/vz/q-/uq/vzq-uqazx-xhzjcigy-bopwteoa.png)
Image Classification Scenario
We showed off this feature in .NET Conf to classify the weather in images as either sunny, cloudy, or rainy, and now you can locally train image classification models in Model Builder with your own images!
![](https://habrastorage.org/getpro/habr/post_images/d13/fbf/a56/d13fbfa56c560f022b6fe3e1af14ac10.png)
For example, say you have a dataset of images of dogs and cats, and you want to use those images to train an ML.NET model that classifies new images as «dog» or «cat.»
Your dataset must contain a parent folder with labelled subfolders for each category (e.g. a folder called Animals that contains two sub-folders: one named Dog, which contains training images of dogs, and one named Cat, which contains training images of cats):
![](https://habrastorage.org/getpro/habr/post_images/074/74b/504/07474b5045168c3942ad23f86e4d85ab.png)
You can use the Next Steps code and projects generated by Model Builder to easily consume the trained image classification model in your end-user application, just like with text scenarios.
Try Your Model
After training a model in Model Builder, you can use the model to make predictions on sample input right in the UI for both text and image scenarios.
For instance, for the dog vs. cat image classification example, you could input an image and see the results in the Evaluate step of Model Builder:
![](https://habrastorage.org/getpro/habr/post_images/494/70a/f5d/49470af5d9dee46940eab26e537e74ff.png)
If you have a text scenario, like price prediction for taxi fare, you can also input sample data in the Try your model section:
![](https://habrastorage.org/getpro/habr/post_images/684/c68/d90/684c68d90352835834325b9451ffd628.png)
Give Us Your Feedback
If you run into any issues, feel that something is missing, or really love something about ML.NET Model Builder, let us know by creating an issue in our GitHub repo.
Model Builder is still in Preview, and your feedback is super important in driving the direction we take with this tool!
Get Started with Model Builder
You can download ML.NET Model Builder in the VS Marketplace (or in the Extensions menu of Visual Studio).
Learn more in the ML.NET Docs or get started with this tutorial.
Not currently using Visual Studio? Try out the ML.NET CLI (image classification not yet implemented).