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 · Start with
Standardize the columns, then try k-means or k-medoids.
- UCL001K-means Runs in CodeSplash
- UCL003K-medoids / Partitioning Around Medoids (PAM) Runs in CodeSplash
2 · Escalate when needed
Use mixtures, robust mixtures, density or deep clustering when groups differ in shape, spread or noise.
- UCL039Gaussian mixture model (GMM) Runs in CodeSplash
- UCL040Student-t mixture model Runs in CodeSplash
- UCL023HDBSCAN Runs in CodeSplash
- UCL066Deep Embedded Clustering (DEC) Runs in CodeSplash (Experimental)
3 · Evaluate with
Stability across resamples, silhouettes read with their caveats, and whether the groups help with something you didn't cluster on.
- EVA009Bootstrap cluster stability with Jaccard matching Runs in CodeSplash
- EVA001Silhouette coefficient Runs in CodeSplash
- EVA010Adjusted Rand index Runs in CodeSplash
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 · Start with
Density clustering with DBSCAN, HDBSCAN or OPTICS.
2 · Escalate when needed
Graph- and manifold-aware methods such as spectral clustering when density alone can't separate the groups.
- UCL027Spectral clustering Runs in CodeSplash
- UCL031Leiden community detection Runs in CodeSplash (Experimental)
3 · Evaluate with
The share of points left as noise, stability, and checks in the original columns.
- EVA009Bootstrap cluster stability with Jaccard matching Runs in CodeSplash
- EVA013Trustworthiness and continuity Partly runs in CodeSplash
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.
Compress or visualize many columns
Can a few directions or a 2-D map summarize my columns?
1 · Start with
PCA or truncated SVD; NMF when every value is nonnegative.
- REP001Principal component analysis (PCA) Runs in CodeSplash
- REP041Latent semantic analysis / truncated SVD Runs in CodeSplash (Experimental)
- REP016Nonnegative matrix factorization (NMF) Runs in CodeSplash
2 · Escalate when needed
ICA, manifold maps such as UMAP and t-SNE, or autoencoders.
- REP007Independent component analysis (ICA/FastICA) Runs in CodeSplash
- REP035Uniform manifold approximation and projection (UMAP) Runs in CodeSplash
- REP034t-distributed stochastic neighbor embedding (t-SNE) Runs in CodeSplash
- DNN031Autoencoder Runs in CodeSplash
3 · Evaluate with
Held-out reconstruction, whether neighbors stay neighbors, and whether the compressed columns help a downstream task.
- EVA015Held-out reconstruction and predictive log score Partly runs in CodeSplash
- EVA013Trustworthiness and continuity Partly runs in CodeSplash
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 · Start with
A robust baseline such as a robust covariance distance, then isolation or nearest-neighbor detectors.
- UCL058Minimum Covariance Determinant Mahalanobis detector Runs in CodeSplash
- UCL048Isolation Forest Runs in CodeSplash
- UCL061K-nearest-neighbor distance detector Runs in CodeSplash
2 · Escalate when needed
Deep one-class models, or reconstruction and density models.
- UCL063Deep Support Vector Data Description (Deep SVDD) Runs in CodeSplash (Experimental)
- UCL064Deep Autoencoding Gaussian Mixture Model (DAGMM) Runs in CodeSplash (Experimental)
- UCL046Kernel density estimation (KDE) Runs in CodeSplash
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.
- EVA028AUROC, precision–recall, and operating-point OOD evaluation Runs in CodeSplash
- EVA027Split conformal prediction and coverage audit Runs in CodeSplash
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.
Model text
What do my documents say, or which class does each one belong to?
1 · Start with
Count-based baselines and pretrained sentence embeddings.
- LNG001Smoothed n-gram language model Runs in CodeSplash
- LNG017Sentence-BERT (SBERT) Runs in CodeSplash
2 · Escalate when needed
Encoder or decoder language models, retrieval, and adaptation such as LoRA.
- LNG010BERT Runs in CodeSplash
- LNG051Retrieval-Augmented Generation (RAG) Partly runs in CodeSplash (AI)
- LNG067Low-Rank Adaptation (LoRA) Runs in CodeSplash
3 · Evaluate with
Task metrics, perplexity only where it is comparable, and checks of facts by people.
- EVA029Perplexity and bits per token Runs in CodeSplash
- EVA032ROUGE family Runs in CodeSplash
- EVA038LLM-as-judge and pairwise human preference protocols Runs in CodeSplash
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 · Start with
A pretrained encoder or speech recognizer suited to the task.
- AUD011Whisper Runs in CodeSplash (Experimental)
- AUD007wav2vec 2.0 Explained here
2 · Escalate when needed
Self-supervised adaptation, transducers, and speech synthesis, codec or generative systems.
- AUD002Recurrent neural network transducer (RNN-T) Explained here
- AUD024VITS Explained here
- AUD038EnCodec Explained here
3 · Evaluate with
Word or character error rate, signal and perceptual measures, and listening tests.
- EVA039Word and character error rates Runs in CodeSplash
- EVA040Scale-invariant signal-to-distortion ratio Runs in CodeSplash
- EVA041Short-time objective intelligibility Runs as a notebook
- EVA044MOS and MUSHRA listening studies Partly runs in CodeSplash
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 · Start with
A frame-level or simple temporal baseline.
- VID005Temporal Segment Networks (TSN) Explained here
2 · Escalate when needed
Spatiotemporal encoders, tracking, and diffusion or world models.
- VID010TimeSformer Explained here
- VID036ByteTrack Runs in CodeSplash (Experimental)
- VID052Video Diffusion Models Explained here
- VID062Dreamer Explained here
3 · Evaluate with
Temporal and task metrics, tracking scores, and review by people.
- EVA050HOTA multi-object tracking evaluation Runs as a notebook
- EVA048Fréchet Video Distance Needs a data type CodeSplash doesn't load yet
- EVA060Temporal consistency and optical-flow warping diagnostics Needs a data type CodeSplash doesn't load yet
Don't conclude: Physical validity from FVD alone. Why not: A low FVD means the generated videos obey physics.
Add a new task or domain
Can a pretrained model do my task, and what does adapting it cost?
1 · Start with
Frozen pretrained features with a small trained head.
- LNG017Sentence-BERT (SBERT) Runs in CodeSplash
- DNN071Self-distillation with no labels (DINO) Partly runs in CodeSplash (Experimental)
2 · Escalate when needed
Partial or full fine-tuning, LoRA and adapters, and continual or domain-adaptation methods.
- LNG067Low-Rank Adaptation (LoRA) Runs in CodeSplash
- LNG070Houlsby adapters Explained here
- TRN021DoRA weight-decomposed adaptation Runs in CodeSplash
- TRN025Elastic weight consolidation Runs in CodeSplash
- TRN040Domain-adversarial neural networks (DANN) Runs in CodeSplash (Experimental)
3 · Evaluate with
The gain on the target task together with what the model can still do on earlier tasks.
- EVA053Paired bootstrap for model-comparison uncertainty Runs in CodeSplash
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.
Compare two systems
Is one model really better than another on the same test set?
1 · Start with
Paired differences on independent evaluation units.
- EVA053Paired bootstrap for model-comparison uncertainty Runs in CodeSplash
- EVA054Paired randomization and permutation tests Runs in CodeSplash
2 · Escalate when needed
Bootstrap and randomization tests, or a suitable formal test, with multiplicity control across many comparisons.
- EVA055Holm and Benjamini–Hochberg multiplicity procedures Runs in CodeSplash
3 · Evaluate with
Effect sizes with intervals, and control of multiple comparisons.
- EVA053Paired bootstrap for model-comparison uncertainty Runs in CodeSplash
- EVA055Holm and Benjamini–Hochberg multiplicity procedures Runs in CodeSplash
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 · Start with
Domain rules every record must satisfy, and a utility baseline trained on real data.
2 · Escalate when needed
Distribution tests, fidelity and coverage measures, and privacy audits.
- EVA016Maximum mean discrepancy two-sample test Runs in CodeSplash
- EVA018Energy two-sample test Runs in CodeSplash
- EVA024Generative precision, recall, density, and coverage Runs as a notebook
- EVA056Membership-inference privacy audit Partly runs in CodeSplash (Predict)
3 · Evaluate with
Several independent criteria at once, never a single test.
- EVA016Maximum mean discrepancy two-sample test Runs in CodeSplash
- EVA024Generative precision, recall, density, and coverage Runs as a notebook
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.
Questions not to swap
An easier question can look like the one you asked. These pairs answer different things.
Are two populations different?
Not the same as: A classifier tells them apart with high training accuracy.
Answer it with: Held-out evaluation and a two-sample test designed for the question.
- EVA019Classifier two-sample test Partly runs in CodeSplash
- EVA016Maximum mean discrepancy two-sample test Runs in CodeSplash
Are the groups I found meaningful?
Not the same as: A 2-D map shows separate islands.
Answer it with: Checks in the original columns, stability, usefulness for another task, and inference that allows for the search.
- EVA009Bootstrap cluster stability with Jaccard matching Runs in CodeSplash
- EVA007Selective inference after hierarchical clustering Runs in CodeSplash (Experimental)
Is a generated signal useful?
Not the same as: One embedding-distance score looks good.
Answer it with: Fidelity, coverage, task performance, perceptual or human evaluation, and failure cases.
- EVA021Fréchet Inception Distance Needs a data type CodeSplash doesn't load yet
- EVA024Generative precision, recall, density, and coverage Runs as a notebook
Why not: The generator's FID improved, so its outputs are more useful.
Is the fine-tuned model better?
Not the same as: Its fine-tuning loss went down.
Answer it with: A locked task evaluation, plus checks of retained abilities, calibration and resources.
- LNG067Low-Rank Adaptation (LoRA) Runs in CodeSplash
Why not: My fine-tuning loss went down, so the tuned model is better.
Is this label wrong?
Not the same as: A confident model disagrees with it.
Answer it with: Label-quality estimates, annotation review and a stated policy for ambiguous items.
- ROB007Confident learning Runs in CodeSplash (Predict)
Why not: When a confident model disagrees with a label, the label is wrong.
Is the model robust?
Not the same as: One attack failed.
Answer it with: A stated shift or threat model, strong evaluation, and a certificate only where it is justified.
- ROB001Projected-gradient adversarial training Runs in CodeSplash
- ROB003Randomized smoothing certification Runs in CodeSplash (Experimental)
Why not: I attacked the model and the attack failed, so the model is robust.
Is this explanation causal?
Not the same as: An attribution or attention score is large.
Answer it with: An identification argument, a suitable design and explicit assumptions about interventions.
- EXP014Activation patching and causal tracing Explained here
- EXP015Attention rollout Partly runs in CodeSplash (Experimental)
Why not: The attention weights show which words the model used to reach its answer.
Do Python and R agree?
Not the same as: Both used the same seed number.
Answer it with: Shared fixtures, matching conventions and outputs compared directly within tolerances.
Why not: I set the same seed in Python and R, so their results should match.