Skip to content

Choose a method family

Pick the goal closest to yours. Each one says where to start, when to escalate, how to evaluate and what not to conclude, with the reference entries behind each step and whether CodeSplash runs them.

Find compact groups in numeric data

Do my rows fall into a few tight, roughly round groups?

  1. 1 · Start with

    Standardize the columns, then try k-means or k-medoids.

  2. 2 · Escalate when needed

    Use mixtures, robust mixtures, density or deep clustering when groups differ in shape, spread or noise.

  3. 3 · Evaluate with

    Stability across resamples, silhouettes read with their caveats, and whether the groups help with something you didn't cluster on.

Don't conclude: A true number of groups in the population, from one internal score. Why not: Silhouette, Calinski–Harabasz and Davies–Bouldin all pick k = 4, so there really are four groups.

Find groups of any shape or density

Are there dense regions of unusual shapes, with scattered points between them?

  1. 1 · Start with

    Density clustering with DBSCAN, HDBSCAN or OPTICS.

  2. 2 · Escalate when needed

    Graph- and manifold-aware methods such as spectral clustering when density alone can't separate the groups.

  3. 3 · Evaluate with

    The share of points left as noise, stability, and checks in the original columns.

Don't conclude: That every isolated point is an error. Why not: DBSCAN labeled these rows as noise, so they're bad data and I can drop them.

Find groups of any shapeDiscover Numeric tables

Compress or visualize many columns

Can a few directions or a 2-D map summarize my columns?

  1. 1 · Start with

    PCA or truncated SVD; NMF when every value is nonnegative.

  2. 2 · Escalate when needed

    ICA, manifold maps such as UMAP and t-SNE, or autoencoders.

  3. 3 · Evaluate with

    Held-out reconstruction, whether neighbors stay neighbors, and whether the compressed columns help a downstream task.

Don't conclude: Global distances or densities read off the islands of a t-SNE or UMAP map. Why not: UMAP splits my data into separate islands, so those islands are the real groups and I can label them.

Detect anomalies

Which rows don't look like the rest, and how often can I afford a false alarm?

  1. 1 · Start with

    A robust baseline such as a robust covariance distance, then isolation or nearest-neighbor detectors.

  2. 2 · Escalate when needed

    Deep one-class models, or reconstruction and density models.

  3. 3 · Evaluate with

    Precision–recall at the alert rate you can handle, the false-alarm rate on rows you trust, and whether whole events get caught.

Don't conclude: Calibrated probabilities from raw anomaly scores. Why not: An isolation forest score of 0.8 means the row has an 80% chance of being an anomaly.

Spot anomalies Turn anomaly scores into alertsDiscover Numeric tables Time series

Model text

What do my documents say, or which class does each one belong to?

  1. 1 · Start with

    Count-based baselines and pretrained sentence embeddings.

  2. 2 · Escalate when needed

    Encoder or decoder language models, retrieval, and adaptation such as LoRA.

  3. 3 · Evaluate with

    Task metrics, perplexity only where it is comparable, and checks of facts by people.

Don't conclude: Truthfulness from low perplexity. Why not: A model with lower perplexity gives more truthful answers.

Transcribe or model audio

What was said, who said it, or how can a sound be separated or generated?

  1. 1 · Start with

    A pretrained encoder or speech recognizer suited to the task.

  2. 2 · Escalate when needed

    Self-supervised adaptation, transducers, and speech synthesis, codec or generative systems.

  3. 3 · Evaluate with

    Word or character error rate, signal and perceptual measures, and listening tests.

Don't conclude: Naturalness from waveform error alone. Why not: The generated speech has a small waveform error, so it sounds natural.

Understand or generate video

What happens over time in my clips, and where do things move?

  1. 1 · Start with

    A frame-level or simple temporal baseline.

  2. 2 · Escalate when needed

    Spatiotemporal encoders, tracking, and diffusion or world models.

  3. 3 · Evaluate with

    Temporal and task metrics, tracking scores, and review by people.

Don't conclude: Physical validity from FVD alone. Why not: A low FVD means the generated videos obey physics.

Track objects across video framesVideo & World Models Video

Add a new task or domain

Can a pretrained model do my task, and what does adapting it cost?

  1. 1 · Start with

    Frozen pretrained features with a small trained head.

  2. 2 · Escalate when needed

    Partial or full fine-tuning, LoRA and adapters, and continual or domain-adaptation methods.

  3. 3 · Evaluate with

    The gain on the target task together with what the model can still do on earlier tasks.

Don't conclude: That fewer trainable parameters always means less total memory. Why not: LoRA trains a tiny fraction of the parameters, so it needs a tiny fraction of the memory.

Adapt a pretrained model to my taskTraining, Adaptation & Compression Text Images

Compare two systems

Is one model really better than another on the same test set?

  1. 1 · Start with

    Paired differences on independent evaluation units.

  2. 2 · Escalate when needed

    Bootstrap and randomization tests, or a suitable formal test, with multiplicity control across many comparisons.

  3. 3 · Evaluate with

    Effect sizes with intervals, and control of multiple comparisons.

Don't conclude: That a tiny p-value means a difference that matters. Why not: Model B beats model A with p < 0.001, so B is meaningfully better.

Validate generated data

Can I use this synthetic or generated data in place of the real thing?

  1. 1 · Start with

    Domain rules every record must satisfy, and a utility baseline trained on real data.

  2. 2 · Escalate when needed

    Distribution tests, fidelity and coverage measures, and privacy audits.

  3. 3 · Evaluate with

    Several independent criteria at once, never a single test.

Don't conclude: Equality or safety because one test failed to find a difference. Why not: A two-sample test found no difference between my real and synthetic data, so they're equivalent and safe to use.

Check generated data before using it Make synthetic data I can shareSynthetic Data & Generative AIResearch-Grade Evaluation & Reproducibility Numeric tables

Questions not to swap

An easier question can look like the one you asked. These pairs answer different things.