Functions & Programming Concepts · Level 2 of 5
Parameter
A named input in a function definition, or an adjustable value in a model.
Programming parameters receive arguments; model parameters are often learned from data.
Listen to the definition and example
Audio transcript
Parameter. A named input in a function definition, or an adjustable value in a model. Programming parameters receive arguments; model parameters are often learned from data. For example: A function declares x as its input name before any call occurs.
Explore this concept
A useful analogy
A labeled socket waiting for a supplied plug; in model training, an adjustable knob.
Why it matters
This helps you distinguish a computation’s contract, inputs, outputs, and behavior.
Technical detail
In def square(x), x is a formal parameter and square(3) supplies the argument 3. Model parameters θ are values fitted by training.
Common misconception
Function parameters and model parameters share a word but serve different roles.
Start with
Related concepts
Quick recall question
Try answering before looking back at the definition.