← Artificial intelligence

Machine learning

Data, training and models

数据、训练与模型

In machine learning we do not write the rules by hand; we give the system lots of data and it finds the patterns.

This process is called training, and its result is a model that can make predictions about new data it has not seen.

A simple example: to teach a model to tell cats from dogs, we collect thousands of pictures, label each one, and the model trains on them until it learns the differences itself.

Data is usually split into a training set the model learns from and a test set it has never seen, used to measure accuracy. If it does well in training but badly in testing, it memorised the examples instead of learning; this is called overfitting.

Data quality often matters more than quantity: wrong or unbalanced data produces a weak or biased model. Hence the saying "garbage in, garbage out".

Ask the AI assistant

Ask anything about this lesson and get a simple answer with the terms in Chinese, Arabic and English.

The AI assistant runs on Google's Gemini model and can make mistakes. Do not write personal information. Available to signed-in learners, up to 30 requests a day.

The content is simplified and covers the basics only.