AI glossary: terms starting with D
45 terms starting with D, each defined the way the lesson that teaches it uses it, with a link to every lesson where it appears.
- daily series
One measured value for each calendar day.
Taught in- data leakage
Information in training that the model will not have when it is used; target leakage is one kind.
- data report
The findings about a table, each with the decision it leads to: keep, transform, drop, or a question for a later video.
- data-quality check
A test for missing, repeated or invalid recorded values before a declared use. It records an issue; the decision about it comes after.
- dataclass
A class whose
__init__,__repr__and__eq__are written from its list of fields, with@dataclass.Taught in- debugger
A tool that stops a program so you can look at its values. Python's is
pdb; VS Code has one built in.Taught in- decision surface
The predicted label at every point of the feature space.
Taught in- decorator
A function applied to the class or function below it, written with
@:@dataclass.Taught in- default value
The value a parameter takes when a call does not pass that argument:
rate=0.08.Taught in- defaultdict
A dictionary that creates a missing key's value when the key is read:
defaultdict(list)creates[]. Fromcollections.Taught in- degree
The highest power in a polynomial model.
- Denominator
all eligible trips in the stated question.
- denominator mismatch
A numerator and denominator that refer to different eligible sets, such as 3,207 approved defaults over all 30,000 rows.
- density
a curve with total area 1, whose area over an interval is the probability of landing there
Example:
2xon[0, 1]- density contour
Locations with equal fitted probability density.
Taught in- density normalization
The rule mapping estimated density to plotted width. With a separate scale per group, widths do not show group size.
Taught in- dependency
A package a project needs, listed in
pyproject.toml.- deployment
Running a model on new data as part of a real system.
Taught in- derivative
the slope of the tangent, the limit of
Δy/ΔxExample:
2forx²at 1- Descriptive statistic
a summary of observed data. The median of the January–February trips is one.
- design matrix
The feature table the model is fitted on, one row per sample,
X.Taught in- determinant
the factor a matrix scales every area by;
ad − bcfor a 2 × 2 matrixExample:
5- deviation
An observed value minus its group's mean.
- dictionary
A collection of key value pairs, looked up by key:
{"Pasta": 12.50, "Salad": 8.25}. Its type isdict.Taught in- dictionary comprehension
A dictionary built from a key and a value evaluated for each item:
{item: price for item, price in zip(items, prices)}.Taught in- difference
The values in the first set that are not in the second,
a - b.Taught in- dimension
the number of components
Example:
(3, 2, 4)is in threeTaught in- Dimension /
ndim An axis / the number of axes
Taught in- dimensionality reduction
Describing examples with fewer columns (Module 11).
Taught in- directional derivative
the slope of
fin the direction of a unit vectoru,∇f · uExample:
6.4641at 30°- discrete outcome
One of a countable set of values: $0, $100 or $1,000.
- displayed time window
The dates included on a chart.
Taught in- distance
the norm of the difference,
‖a − b‖Example:
2.2361from(3, 1)to(1, 2)- distance concentration (curse of dimensionality)
in high dimensions, the nearest and farthest neighbours are almost equally far away
Example: ratio
1.123atd = 1000- divergence
Each step landing further from the minimum.
Taught in- docstring
A string on the first line of a function's body that says what the function does.
help()and__doc__show it.Taught in- domain
the inputs a function accepts
Example: every real number for
2x + 1; positive numbers forlog₂ xTaught in- dot product
the sum of the products of matching components
Example:
(3, 4) · (2, 1) = 10dtypeThe type and width used for array elements
Taught in- dual axes
Separate vertical scales placed on one plot; either can be rescaled until two lines look aligned.
Taught in- dummy-variable trap
One 0/1 column for every category, beside an intercept, which makes the columns perfectly collinear.
Taught in- duplicate
A row whose content repeats another row.
- duplicate record
A row matching an earlier row on the compared fields: 5,268 exact repeats, to inspect, not delete silently.
dy/dxthe same derivative, written as a ratio of small changes
Example:
d(x²)/dx = 2x- dynamic typing
A name can refer to an object of any type, and can be rebound to an object of a different type:
items = 3, thenitems = 3.5.Taught in