What machine learning is: how computers learn patterns from data
Machine learning uses algorithms to learn patterns from training data and then applies those patterns to new data. It is a subset of artificial intelligence, distinct from traditional rule-based programming. Common types include supervised, unsupervised, and reinforcement learning.

Definition and importance of machine learning
Machine learning is a subset of artificial intelligence focused on algorithms that learn patterns from training data and then make accurate inferences about new data. This pattern recognition ability enables models to make decisions or predictions without explicit, hard-coded instructions, according to IBM's overview.
Carnegie Mellon University defines machine learning as the study of computer algorithms that improve automatically through experience. The field covers topics such as decision trees, neural networks, and reinforcement learning, as summarized in Tom Mitchell's textbook.
Microsoft Learn notes that machine learning is the basis for most modern artificial intelligence solutions, making core concepts an important foundation for understanding AI. The training module introduces core concepts and types of machine learning models, as described in Microsoft Learn's introduction.
The learning process
AWS describes machine learning as a process that begins with data preprocessing, which cleans and transforms raw data. Then the model is trained on preprocessed data, where the algorithm iteratively adjusts parameters to minimize prediction errors. Evaluation on a validation set checks generalization, and optimization refines the model, as explained in AWS's machine learning overview.
Google for Developers explains that machine learning is the process of training a piece of software, known as a model, to make predictions or generate content from data. The model learns a mathematical relationship between input and output, such as predicting rainfall from weather data, as described in Google's foundational course.
Types of machine learning
NVIDIA categorizes machine learning into supervised learning, which uses labeled data, and unsupervised learning, which finds patterns in unlabeled data. Semi-supervised learning mixes labeled and unlabeled data, while reinforcement learning trains algorithms to maximize rewards based on feedback. Examples include classification for spam detection and regression for price prediction, as detailed in NVIDIA's glossary.
Supervised learning is used for tasks where the correct output is known, such as regression for numeric values and classification for categories. Unsupervised learning seeks hidden structures like clusters or associations. Reinforcement learning involves an agent that learns from rewards and penalties through interaction with an environment.
Applications and evaluation considerations
Stanford's CS229 course provides a broad introduction to machine learning and statistical pattern recognition. It covers supervised and unsupervised learning, learning theory, and reinforcement learning, with applications in robotic control, data mining, autonomous navigation, bioinformatics, speech recognition, and text and web processing, as stated in the course description.
Model evaluation uses data separate from the training set to measure performance. Common metrics include accuracy, precision, and recall for classification, and mean squared error for regression. Overfitting occurs when a model performs well on training data but poorly on new data, so a validation set helps detect it.
| Type | Data labels | Common tasks | Example |
|---|---|---|---|
| Supervised | Labeled | Classification and regression | Spam detection or house price prediction |
| Unsupervised | Unlabeled | Clustering and association | Customer segmentation or product recommendation |
| Semi-supervised | Mixed labeled and unlabeled | Use small labeled set to guide learning | Text categorization with limited labels |
| Reinforcement | No fixed labels | Maximize reward through trial and error | Game playing or robot control |
Frequently asked questions
What is the difference between artificial intelligence and machine learning?
Artificial intelligence is a broader field that includes rule-based systems and any program that makes decisions or predictions. Machine learning is a subset that learns from data without explicit programming.
How does supervised learning work?
Supervised learning uses labeled data where the correct output is known. The model learns the relationship between inputs and outputs by comparing its predictions to the labels and adjusting its parameters to reduce error.
What is a model in machine learning?
A model is a mathematical relationship derived from data that the system uses to make predictions or generate content. It is trained on examples and then applied to new data.
Why is model evaluation important?
Evaluation checks if the model can generalize beyond the training data. A separate validation set helps avoid overfitting and ensures the model works on unseen data.