In machine learning, what is a model?
- Exam domain
- AI foundations
- Difficulty
- Medium
- In this mock
- 5 questions on this domainPractise this domain
Why B is the answer
A learned function that maps inputs to outputs using patterns in data
Training adjusts a model's parameters so that it maps inputs to outputs. After training, the model makes predictions on new inputs without anyone writing the rules by hand.
Remember: A model is a function learned from data.
In detail
- A model is learned from data, not written by hand.
- It generalises to inputs it has not seen.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. A database table that keeps every training example for later lookupWrong
A model keeps learned parameters, not a copy of every example.
B. A learned function that maps inputs to outputs using patterns in dataRight
A model is a function learned from data.
C. A hand-written set of if-then rules that an expert maintainsWrong
Hand-written rules are a rules-based system, not machine learning.
D. A dashboard that charts historical resultsWrong
A dashboard shows data; it does not predict.
Use case
An illustrative scenario, not a real incident.
Illustrative: instead of writing hundreds of rules for spam, a team trains a model on a year of labelled emails.
See it in different ways
flowchart LR S0["Data"] --> S1["Training algorithm"] --> S2["Model"] --> S3["Predictions on new data"]
How to read this chart
- Read it in order: Data, then Training algorithm, then Model, then Predictions on new data.
flowchart TD
Q{"Can an expert write all the rules?"}
Q -->|"Yes"| A0["Rules-based system"]
Q -->|"No, the patterns are too complex"| A1["Machine learning"]How to read this chart
- At "Can an expert write all the rules?": if "Yes", go to "Rules-based system"; if "No, the patterns are too complex", go to "Machine learning".