Try .NET on Azure for free
Get started with 12 months of free services and build .NET cloud apps with your Azure free account.

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 classification, value prediction, recommendation, and image classification scenarios.

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

In the Model Builder Scenario screen, select the Text Classification scenario, since you are predicting which category a comment falls into (positive or negative).

To generate your model, you need to select your machine learning scenario.

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

  • Classification - Use this when you want to predict which category data belongs in (for example, analyzing sentiment of customer reviews as either positive or negative).
  • Image classification - Use this when you want to predict which category an image belongs to (for example, predicting if an image is of a cat or a dog).
  • Regression (e.g. value prediction) - Use this when you want to predict a numeric value (for example, predicting house price).
  • Recommendation - Use this when you want to recommend items to users based on historical ratings (for example, product recommendation).

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

Continue