This topic provides an example of using AutoLearning to train models. In this example, an image classification model is trained to classify images of mules, horses, and alpacas.
The system provides 33 images of mules, horses, and alpacas. You can use these images to train a model with an accuracy of higher than 80%, then use the model to classify mules, horses, and alpacas. After you upload an image into the model, the category of the image is returned.
- Perform the following steps to navigate to the AutoLearning page.
- Log on to the Machine Learning Platform for AI console.
- In the left-side navigation pane, choose .
- On the AutoLearning page, navigate to the Image Classification_Animal section, and click Create.
- Label images.
- In the Data Annotation wizard, navigate to the List of labels section, and click Add Label.
- In the text box that appears, enter mule. Then, press the Enter key.
- Repeat the preceding steps to add labels of horse and alpaca.
- Select all images of alpacas. Then, click Select picture label, and select alpaca.
- Repeat the preceding steps to label the images of horses and mules.
- Click Complete labeling.
- Train and evaluate the model.
- In the Start training dialog box, set the Maximum training duration to 10.AutoLearning supports Early Stopping, which can prevent overfitting.Note The Maximum training duration is measured in minutes. Enter a value from 10 to 60.
- Click Start training.
- In the Model Training and Evaluation wizard, view the Training progress and Latest Assessment Results.To increase the accuracy of the model, you can increase the number of images or training duration.
- In the Start training dialog box, set the Maximum training duration to 10.
- Test the model.
- In the Model Training and Evaluation wizard, navigate to the Operation section, and click Trial.
- In the Model Trial wizard, drag a local image to the Local files section.
- Click Forecast.
- On the List Display tab, view the Confidence level of the prediction result.