Function
Say it: "f maps X to Y"
What it means
A rule that turns each input in into one output in . is the output for input .
Example
Real number in, real number out.
In code
def f(x): return 2 * x + 1 print(f(3))
Output
7
Where it appears in machine learning
A model is a function from features to a prediction, with parameters .
Related symbols
Learn it properly in the free lesson Functions & Graphs, with practice questions that check your answers.