Do you work with .NET Core updates?
Take a quick survey to help us improve your experience with acquiring .NET Core updates.

ML.NET Tutorial - Get started in 10 minutes

Pick a scenario

To generate your model, you first need to select your machine learning scenario. Model Builder supports several scenarios:

Model Builder supports sentiment analysis, image classification, price prediction, and custom scenarios.

In this case, you'll predict sentiment based on the content (text) of customer reviews.

In the Model Builder Scenario screen, select the Sentiment Analysis scenario, which is a binary classification ML task.

To generate your model, you need to select your machine learning scenario and its corresponding ML task.

There are several ML tasks that are supported by the ML.NET CLI:

  • Binary classification - Use this when you want to analyze text and predict if it belongs in either category A or category B (for example, analyzing sentiment of customer reviews as either positive or negative)
  • Multiclass classification - Use this when you want to analyze text and classify into multiple categories (for example, labeling new GitHub issues).
  • Regression - Use this when you want to predict a numeric value (for example, predicting house price). This task is called regression.

In this case, you'll predict sentiment based on the content (text) of customer reviews, so you'll use the binary classification ML task.

Continue