Task Types

Regression, classification, ranking, clustering, dimensionality reduction and anomaly detection — what each one outputs, and why a visually separated cluster is not a business segment.

Regression

The output is a number. The loss decides which errors that number is allowed to make, and the business rarely agrees with squared error about which errors are expensive.

Q · The model outputs a continuous value. Which errors is it trained to avoid, and are those the errors that cost the business money?
Classification
▶ lab

The model outputs a probability; the product needs a decision. The threshold between them is where the business cost lives, and it is the part that gets defaulted to 0.5.

Q · The model outputs a category or a probability. How does that become an action, and which metric describes the action rather than the probability?
Ranking

The output is an order, judged by what sits at the top. The label is usually a click, which was produced by the previous ranking — so the model learns the old order as much as relevance.

Q · The product shows a list and the model decides the order. What is the label, where did it come from, and what does the model learn about positions that were never shown?
Clustering

k-means and hierarchical clustering find groups under a distance you chose. A visually separated cluster is a fact about the geometry, not about the business — until something external says otherwise.

Q · The algorithm returned clean groups. Under what distance, how stable are they, and what outside the algorithm says they mean anything?
Dimensionality Reduction
▶ lab

PCA keeps variance; UMAP and t-SNE keep neighbourhoods, approximately. Neither keeps meaning, and a 2D picture of a 300-dimensional space is a drawing, not a map.

Q · You projected a high-dimensional space to two dimensions and it looks structured. What did the projection keep, what did it throw away, and which of the things you see are artefacts?
Anomaly Detection

The model ranks how unusual each point is. Unusual is not the same as bad, positives are rare, and someone has to read the top of the list — so precision there is the whole product.

Q · Positives are rare and mostly unlabelled, and the model flags what is unusual. Anomalous relative to what, and who checks whether the top of the list is worth reading?