AI glossary: terms starting with R
46 terms starting with R, each defined the way the lesson that teaches it uses it, with a link to every lesson where it appears.
- R²
One minus the model's squared error over the mean's squared error: the fraction of the mean's squared error the model removes.
Taught in- raise
Create an exception and stop the function with it:
raise ValueError(...).Taught in- random search
Trying randomly sampled settings.
Taught in- random train/test split
A random partition of the rows already observed.
Taught in- random variable
A numeric value assigned to each possible outcome; here, a randomly chosen client's assigned cost.
- range
A sequence of whole numbers from a start, up to but not including a stop, with an optional step:
range(0, 20, 5)gives0,5,10,15. It works each number out when the loop asks for it.Taught in- rank
the number of dimensions a matrix's output fills
Example:
1for the singular example- RANSAC
Fitting on random minimal samples and keeping the one most rows agree with.
- Rate
numerator divided by eligible denominator.
- rate of change
Δy/Δx, the change in the output per unit change in the inputExample:
x²from 1 to 2:3- rate of change (slope)
change in output divided by change in input
Example:
2everywhere for2x + 1Taught in- rate per week
An amount divided by the number of complete weeks it represents.
Taught inℝᵈlists of
dreal numbersExample:
X ∈ ℝ³ˣ²Taught in- rebinding
Binding a name to a different object. The old object is unchanged, and any other name still refers to it.
- recursion
A function calling itself.
Taught in- RecursionError
The error Python raises when the call stack goes past its limit,
sys.getrecursionlimit(), typically1000in our Python session, but configurable.Taught in- recursive case
The part of a recursive function that calls the function on a smaller input:
return n * factorial(n - 1).Taught in- Reduction
Combining values along an axis, such as
sumormeanTaught in- redundant feature
A feature whose information another feature already carries:
perimeter_meanbesideradius_mean.Taught in- reference category
The category with no column of its own, which the other categories' coefficients are compared against.
Taught in- regression
Supervised learning where the answer is a quantity, so being close counts.
Taught in- regression test
A test written from a bug, so that the bug can not come back unnoticed.
- regularization
Adding a penalty on the weights to the objective.
Taught in- reinforcement learning
Learning which actions to take from rewards; outside this track.
Taught in- relative change
Difference divided by the starting value: 22.57% between the weeks starting 2011-10-31 and 2011-11-07.
Taught in- relative error
the error divided by the size of the number
Example: at most
1.11 × 10⁻¹⁶after rounding- reported rate
A numerator and denominator plus the rule defining who is included.
- reproduce
Make a bug happen on purpose, on an input you can give again.
Taught in- resampling with replacement
Each draw uses the same source values, so repeats are possible.
Taught in- Reshape
Interpret the same number of elements with a new shape; a copy is possible for non-contiguous inputs
Taught in- residual
actual value minus predicted value
Example: the middle third's mean,
−1.34- residual plot
Residuals plotted against fitted values.
- residual SD
Empirical spread of observed minus fitted durations: about 7.71 minutes here.
- return value
The value a call gives back. Reaching the end of the body normally without an explicit return gives back
None.Taught in- review rule
A declared test that assigns each row to review or no review, such as
PAY_0 > 0.- ridge regression
Linear regression with a penalty on the squared size of the weights.
Taught in- right skew
A distribution with a longer tail toward larger values.
- RMSE
Square root of mean squared prediction error, in the original unit.
- robust regression
Fitting with a loss that a few bad rows can not dominate.
- ROC curve
the true positive rate against the false positive rate as the threshold moves
Example: the tiny ward's seven points
Taught in- ROC-AUC
Rank-based score comparing positive and negative labels: the share of positive–negative pairs where the positive scores higher, ties counting one half.
Taught in- root
b^(1/n), the number whosenth power isbExample:
2^½ = 1.4142Taught in- rounding error
the difference between a number and the float stored for it
Example:
0.1is stored5.55 × 10⁻¹⁸too high- row vector
one row,
1 × dExample:
u.reshape(1, -1)Taught in- rug plot
Marks at observed values, one per recorded duration.
Taught in- rule-based program
A program that follows a rule a person wrote, such as "spam if it contains free".
Taught in