AI glossary: terms starting with C

87 terms starting with C, each defined the way the lesson that teaches it uses it, with a link to every lesson where it appears.

call

Running a function's body, by writing its name and round brackets: with_tax(12.50).

call stack

The frames of every call that has started and not yet returned, the newest on top.

cancellation

the loss of correct digits when two nearly equal numbers are subtracted

Example: (1 + h)² − 1 at h = 10⁻¹²

cancellation record

An invoice ID with a C prefix; refund status is not established.

candidate feature

A recorded input proposed for later model evaluation.

capacity

How closely a model can follow its training rows.

categorical

A column whose values name groups, even when they are stored as numbers.

category

A named group represented by a recorded value.

causal claim

A claim about what would change if something were changed; the report can not make one from this file.

causal effect

The outcome change attributable to an intervention under a valid comparison.

CDF

Cumulative probability at or below a value.

CDF gap

The largest vertical distance between the two classes' empirical CDFs: 0.812 for concave_points_worst. A threshold placed there separates the classes as well as the feature can.

central limit theorem

Under suitable conditions, standardized sample means approach a normal distribution as sample size increases; it gives no fixed sample size.

centred matrix

each column minus its mean, so every column mean is zero

Example: [[0, −1], [−2, 1], [2, 0]]

centring

Subtracting each feature's mean.

chain rule

the derivative of f(g(x)) is f′(g(x)) · g′(x)

Example: (3 − 2x)² → 2(3 − 2x)(−2)

chaining

Calling a method on the value the previous method returned: review.strip().lower().

Chebyshev distance

The largest absolute difference.

chord

a straight line between two points of a curve

Example: x² from −2 to 1

chronological holdout

A later test period separated from earlier training dates.

churn indicator

One for a recorded churn label, zero otherwise.

class

A definition of a new kind of object: class Review:. Calling it, Review(...), creates an instance.

class-conditional distribution

The distribution of a feature within one class: concave_points_worst among the malignant tumors.

classification

Supervised learning where the answer is one of a set of categories.

closed form

A formula that gives the minimum directly, without iterating.

closure

A function that retains access to bindings in an enclosing function scope after the outer call returns.

clustering

Finding groups of similar examples (Module 12).

coefficient

Score change when x rises by one.

coefficient path

Every weight plotted against the penalty strength.

Colab

Jupyter notebooks in the browser, run on Google's computers. Notebooks are saved to Google Drive, and nothing is installed locally.

collection artifact

A pattern in the data made by how it was collected, not by what it records.

collinearity

Features that are close to linear functions of each other.

collision

Two keys in the same bucket, such as 46 and 22 in a table of eight buckets.

column mean

the average of one column, one number per feature

Example: (2, 2)

column space

the span of a matrix's columns, every possible Ax |

column vector

one column, d × 1

Example: u.reshape(-1, 1)

columns of a matrix

where e₁ and e₂ land

Example: [[2, 1], [1, 3]]: (2, 1) and (1, 3)

comment

Text after #, skipped when the code runs. A comment over several lines starts each line with its own #.

comparison operator

An operator that gives True or False: ==, !=, <, >, <=, >=.

complement

Every outcome in the sample space outside an event.

complementary slackness

either the constraint is tight or its multiplier is zero

Example: x + y ≤ 4: multiplier 0

complex

A number with real and imaginary parts, such as 1 + 2j. The j marks the imaginary part; type(1 + 2j) is <class 'complex'>.

component

one entry of a vector

Example: 3 in (3, 2)

composition

one transformation applied after another

Example: shear, then rotate

computation graph

a calculation drawn as nodes, one operation each, joined by the values they pass

Example: u = 3a, v = u + b, f = v²

condition

An expression whose truth value an if or a while tests, such as total >= 50 or name.

condition number

how much a matrix can magnify a small relative change; 1 is perfect, and large means nearly singular

Example: 25,008 for [[1, 2], [2, 4.001]]

conditional expression

a if condition else b, an expression that gives one of two values: 0.0 if total >= 50 else 4.99.

conditional independence

Within each class, one flag result does not alter another flag's probability. An assumption the construction does not establish.

conditional probability

A fraction calculated inside a restricted group: P(A given B) counts the outcomes in both and divides by all of B. P(spam given flagged) = 9 / 108.

confidence interval

Bounds produced by a sampling procedure.

confidence level

The intended long-run coverage of a procedure under its assumptions.

consensus set

The rows within the threshold of the chosen fit.

constant error spread

Similar conditional residual variability across predictor values.

constant time

O(1): the same number of operations however large the input, such as values[0] or len(values).

constraint

a condition the answer must satisfy, such as g(x, y) = c

Example: x + y = 1

contingency table

Counts for each combination of two recorded categories.

continue

Ends this iteration; the loop goes on with the next item, or checks its condition again.

continuous random variable

Under a model, any value in an interval is possible, such as a review time from 0 to 10 minutes.

contour

a curve joining points where the function has the same value

Example: the ellipse x² + 3y² = 7

contour map

Lines of equal loss over the plane of two parameters.

contraction factor

The number the remaining error is multiplied by at each update.

control total

A published population count used here for comparison.

convergence

The parameters settling at the minimum.

convex function

every chord lies on or above the curve

Example: x², log(1 + eˣ)

Cook's distance

How much the fitted values change when one row is left out.

coordinate descent

Minimizing over one weight at a time, with the others held fixed.

Copy

An array with independent data

correlation

covariance divided by both standard deviations, between −1 and 1

Example: 0.8

correlation matrix

the covariance matrix of standardised features; ones on the diagonal, correlations off it

Example: [[1, 0.9588], [0.9588, 1]]

cosine

the horizontal coordinate of the point at angle θ on the unit circle

Example: cos 60° = 0.5

cosine distance

One minus cosine similarity.

cosine similarity

the cosine of the angle between two vectors

Example: 0.5714 for emails 12 and 13

cost matrix

An assumed cost for each action × outcome combination: $1,000 per missed default, $100 per reviewed nondefault, $0 otherwise.

count vector

one component per vocabulary word

Example: email 12, (2, 0, 1, 1, 1, 0, 0, 0, 0, 0)

Counter

A dictionary that counts; a missing key counts zero. Counter(votes).most_common(1) gives [('tea', 3)]. From collections.

covariance

the mean of the products of two centred features; positive when they rise together

Example: 4

covariance ellipse

axes along the covariance matrix's eigenvectors, semi-axes the square roots of its eigenvalues

Example: 3 and 1

covariance matrix

(1/n) XᵀX for centred X; one row and column per feature

Example: [[5, 4], [4, 5]]

coverage

Fraction of repeated intervals containing a fixed target.

credible interval

A rate range containing a stated share of posterior probability under the stated prior and likelihood.

cross-validation

Estimating a model's score by fitting and validating on several splits of the training rows.

CSV

A table stored as text, one row per line, values separated by commas. A value with a comma in it is written in quotes.

cumulative distribution function, CDF

Probability at or below a threshold.

cumulative fraction

The count at or below a value divided by all selected observations.

curvature

how sharply a curve bends; its sign says up or down

Example: +6 at 1, −6 at −1

curvature along a direction

How fast the slope of the loss changes as one moves that way.