Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
Glossary › Function

What is function?

A rule that turns each input into exactly one output. Every model is a function whose behaviour is set by its parameters.

Where it is taught

Functions. A function is a machine that takes a number in and gives a number out. Every model in AI, however large, is one of these.

What the lesson leaves you with

  • A function gives exactly one output for each input. f(x)f(x)f(x) means "the output for input xxx".
  • A graph is a picture of a function: inputs across, outputs up.
  • Parameters are the settings inside a function. Learning means adjusting them.
Open the lesson

Questions

What is function?
A rule that turns each input into exactly one output. Every model is a function whose behaviour is set by its parameters.
Where is function used in AI?
A function is a machine that takes a number in and gives a number out. Every model in AI, however large, is one of these.
What is the key idea to remember about function?
A function gives exactly one output for each input. <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">f(x)</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="katex-base"><span class="katex-strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mord mathnormal" style="margin-right:0.1076em;">f</span><span class="mopen">(</span><span class="mord mathnormal">x</span><span class="mclose">)</span></span></span></span> means "the output for input <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>x</mi></mrow><annotation encoding="application/x-tex">x</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="katex-base"><span class="katex-strut" style="height:0.4306em;"></span><span class="mord mathnormal">x</span></span></span></span>".
Where can I learn function step by step?
In the lesson “Functions” in Gradient’s course on the maths behind AI, with interactive diagrams and questions.

Related terms

  • Logarithm
  • Mean