Just enough machine learning
Training and using a model are different. The limits of the model become the limits of your agent.
In this course
Explain training versus inference, and why an agent inherits the model's limits.

Two different moments
Training is how a model learns patterns from data. Engineers collect and clean examples, choose an objective, adjust the model’s weights, and evaluate the result. This is the expensive, slow part, and it happens before you use the model.
Inference is how the trained model is used. The weights are fixed; the model takes a new input and produces an output. When you chat with a model or call it from an agent, you are doing inference.
When you build an agent, you are almost always using a model someone else trained. You are not changing its weights; you are designing the loop, tools, data, and approval points around it. That means you inherit both its strengths and its limits.
Two different moments
Training changes the model. It happens before you use it, using data prepared for that purpose.
01
Collect data
Examples and their expected answers.
02
Adjust the model
Weights change to reduce prediction errors.
03
Evaluate
Test on examples the model did not train on.
After training, the weights are saved. The model can now be used.
Put the lifecycle in order
A model goes from raw data to a running agent. Put the stages in order.
Steps
Your order
Pick a step to place it first.
Why limits matter to an agent
A model that is bad at arithmetic will be bad at arithmetic inside your agent unless you give it a calculator. A model with a limited context window will forget earlier steps unless you design the agent to keep notes. A model trained on old data will not know today’s news unless a tool supplies it.
The practical move is not to expect the model to be good at everything. It is to identify the specific gaps and add the right tool, context, or human check.
This is why the agent’s design matters as much as the model choice. The model supplies language and judgment-like patterns; the loop supplies memory, actions, and limits.
response = model.generate(
messages=conversation,
tools=[search_notes],
)
# The model proposes. Your loop decides what to do next.Quick check
1 of 2What happens during inference?
What you learned
- Training changes the model; inference uses the trained model.
- An agent inherits the model's limits.
- Tools and loop design can compensate for some limits.
That is “Just enough machine learning.”
If the idea clicked, mark it complete. Your progress and badges stay on this device.
Badge
ML Starter
You can explain training, inference, and model limits.
Badges mark completion, not mastery. They are self-reported course completions saved on this device.