The complete map

61 ways into the implementation.

One entry per selected case study. Shared systems are connected—not counted as independent discoveries.

← ML Engineering home
All articles and their illustrated implementation example
ID / typeArticleExample illustrated
E01
Implementation
Build a patch transformer—and make every pixel countChart image → Patch extraction → Token embedding → Transformer × 3 → Pooling + MLP → Class probabilities
E02
Implementation
Porting a transformer is more than translating layer namesChart image → Unfold patches → Token projection → Transformer × 4 → Flatten + MLP → Class logits
E03
Implementation
One encoder, many entities: building pairwise attentionEntity images + IDs → Shared CNN → Identity + category → All ordered pairs → Pair attention → Pair predictions
E04
Implementation audit
Building graph attention from node and edge signalsNode / edge histories → Temporal encoders → Node-edge features → Attention × 2 → Node classifier → Predictions
E05
Implementation audit
A padded sequence needs more than zero-valued inputsSequence + validity → Multiply by mask → LSTM stack → Dense representation → Classifier
E06
Evaluation
Give a classifier an abstain option—and account for itImages + metadata → Classifier → Validity screen → Decision thresholds → Evaluation table
E07
Implementation
A reusable ML pipeline starts before the estimatorFeature table → Partition → Train-fitted scaler → Optional PCA → Estimator
E08
Evaluation audit
When your test set quietly becomes a validation setConfigurations → Fit candidate → Score candidate → Select maximum → Serialize winner
E09
Implementation
Turning a time series into an image is a modeling decisionHistorical table → Context selection → Chart channels → Raster renderer → Image dataset → CNN or transformer
E10
Implementation
Evolve a population of networks with one vectorized evaluatorParameter population → Unflatten parameters → Policy batch → Fitness evaluation → PGPE update
E11
Implementation audit
Build a foveal time-series state without borrowing the futureFive-second bars → Resolution bank → OHLCV aggregation → Relative features → Policy input
E12
Implementation
Keep an evolving network and its feature schema in syncHistorical features → NEAT configuration → Genome population → Fitness + selection → Winner checkpoint
E13
Evaluation
An OOD notebook needs an explicit distribution boundaryFrozen genome → Evaluation cohort → Feature adapter → Inference runner → Grouped outcomes
E14
Implementation
Add prioritized replay without changing what a transition meansSequence observation → Stacked LSTMs → Action + transition → Priority replay → Weighted TD update → Target network
E15
Implementation
Separate the three clocks in a recurrent DQNObserved sequence → LSTM × 2 → Q head → Replay batch → TD target → Optimizer step
E16
Upstream reference
Tensorized neuroevolution starts with an upstream dependency mapGenome representation → TensorNEAT upstream → JAX / Flax stack → Task environments → Fitness interface
E17
Implementation prototype
Represent variable neural graphs with fixed-size tensorsBounded genome arrays → Graph scheduling → Input injection → Masked aggregation → Activation + output
E18
Implementation
Bridge an evolutionary optimizer and a Flax policySetup snapshot → Flax MLP → Five sigmoid outputs → Episode simulator → Population fitness
E19
Implementation
Keep the policy snapshot separate from the future tapeObserved bar prefix → Geometry snapshot → Policy observation → Future bar tape → Simulation outcome
E20
Implementation
Put the state machine inside Numba, not the experiment designAligned bar arrays → Parameter tuple → Numba state machine → Per-case results → Search orchestrator
E21
Evaluation
Aggregate a strategy evaluation without losing the quiet daysDaily event records → Sequential state → Session summaries → Monthly aggregation → Diagnostics
E22
Evaluation audit
Ten thousand bootstrap draws are still twenty observed daysObserved daily values → IID index sampler → Synthetic annual sums → Tail summaries → Interpretation
E23
Implementation
Parallel hyperparameter search needs one experiment ledgerPersistent study → Worker processes → Suggested parameters → Fixed evaluator → Trial result
E24
Implementation
A data callback is not a durable datasetFeed callbacks → Per-symbol buffers → Periodic save check → CSV writers → Offline dataset
E25
Implementation
When does an online bar actually become observable?Incoming source bar → Bucket assignment → Current aggregate → Later bucket arrives → Downstream consumer
E26
Implementation
Idempotent event handling starts with the right identityTransport messages → Typed event parser → Semantic identity → Bounded seen cache → State handlers
E27
Implementation
Learn an invariant encoder from neighboring viewsMNIST image → Two rotations → Shared CNN encoder → Normalized embeddings → Contrastive objective → Frozen ridge probe
E28
Evaluation
Evaluate invariance where the labeled examples are scarcePretrained encoder → Canonical support → Frozen features → Ridge readout → Rotated test images
E29
Implementation
Train one convolutional block at a timeTwo augmented images → Frozen prefix → Current block → Local projection head → NT-Xent loss → Next block
E30
Negative result
A local learning rule still has to beat random featuresCIFAR-10 images → Representation arms → Frozen feature probes → Accuracy comparison → Decision
E31
Implementation
Distill a representation, not just a class predictionTraining image → Student CNN → Feature projection → Teacher feature target → MSE / cross-entropy → Student evaluation
E32
Negative result
A smaller student is not automatically a compressed teacherTeacher features → Compact student → Training arms → Readout choices → Paired evaluation
E33
Implementation
Add classes by accumulating statistics over frozen featuresCached DINOv2 features → Fixed Fourier map → Class batches → Sufficient statistics → Ridge solve → Prediction
E34
Evaluation
Match the joint readout without claiming universal zero forgettingSame cached features → Task-wise Gram arm → Joint Gram control → Other head controls → Final accuracy
E35
Implementation
Take control of PyTorch’s reverse pass, one block at a timeFour stacked frames → Convolutional blocks → Dense Q head → TD error seed → Reverse block sweep → Optimizer update
E36
Negative result
A nine-second RL run can validate plumbing, not competencePong observations → CNN Q network → 3,000 training steps → Greedy evaluation → Diagnostics
E37
Implementation
Put a learned actuator model between policy and physicsWorld + force sensors → SAC actor → Actuator model → Physical transition → Reward + next state
E38
Implementation
Make each checkpoint an experiment receiptTraining callback → Policy state → Safetensors snapshot → Frozen validation → Receipt JSON
E39
Negative result
Prediction gains do not automatically become control gainsFrozen actuator arms → SAC training seeds → Selected policies → Held-out resets → Joint capability gate
E40
Implementation
Infer a state-space model’s poles before fitting its readoutTraining output sequences → Hankel snapshot pairs → Truncated SVD → DMD eigenvalues → Complex recurrence → Ridge readout
E41
Evaluation
Stress a dynamical model along two independent axesSynthetic driven dynamics → Noise panel → Representation arms → Fit on 96 steps → Evaluate at 96 / 192
E42
Implementation
Build a sinusoidal coordinate network with the right initializationSpatial coordinates → First sine layer → Hidden sine layers → Linear field head → Training loss
E43
Implementation
Differentiate a field four times without losing the graphCoordinates → Tanh network → Nested derivatives → Physics residual → Boundary + data loss
E44
Implementation audit
Package an operator-aware basis as a PyTorch layerPhysical coordinates → Cardinal grid map → Local trig atoms → Global sin / cos → Concatenated basis
E45
Engineering practice
A research project needs a current state, not just a long historyExperiment protocol → Run artifacts → Verification → Current state ledger → Next authorized action
E46
Engineering practice
Turn an overbroad memory claim into a regression testOld observation → Ridge state → Conflicting new label → Pooled statistics → Updated optimum
E47
Evaluation
A compressed memory needs an answer budget as well as a byte budgetObservation blocks → Native accumulator → Retained capsule → Later model query → Answer gate
E48
Implementation audit
Collect a transformer’s internal state at the correct boundaryPrompt tokens → Pretrained GPT-2 → KV cache extraction → Query reconstruction → Offline record
E49
Engineering practice
Design a KV-compression benchmark before designing a codecPer-head K / V → Candidate codec → Reconstructed K / V → Attention proxy → Accounting
E50
Implementation audit
Four-bit arithmetic is not yet a four-bit representationFloat tensor → Symmetric scale → Round + clip → int32 workspace → Float reconstruction → Estimated bytes
E51
Implementation audit
Evaluate compression at the operation that consumes itQ, K, V tensors → Scaled dot products → Row softmax → Output → Reconstructed K / V → Error + cosine
E52
Evaluation
Nineteen thousand metric rows are not nineteen thousand experimentsSaved metric table → Group identities → Matched comparisons → Prompt-level summaries → Interpretation
E53
Implementation prototype
Keep the audio callback small; estimate the motion elsewhereSpeaker carrier → Acoustic path → Audio callback → Windowed estimator → Tracking / filtering
E54
Engineering practice
A hundred updates per second is not a hundred independent measurements48 kHz samples → Overlapping windows → 10 ms hop → Queue + filters → Displayed trace
E55
Engineering practice
Design a sensor data contract before training a sensor modelWi-Fi observation → Embedded packet → Host parser → Aligned dataset → Future model
E56
Implementation audit
A ring buffer is a concurrency protocol, not just an arrayCSI callback → Packet framing → PSRAM ring → USB writer task → Host stream
E57
Implementation prototype
Carry the filter state across speech framesSpeech frame → Analysis → Excitation generator → Stateful all-pole filter → Energy matching → Reconstructed waveform
E58
Engineering practice
Verify a resource limit where the process actually runsService definition → Service manager → Container process → Resource controller → Observed counters
E59
Implementation
Make a read-only service small by constructionPinned transport packages → Limited source tree → Python module entry → Read-only transport role → External runtime policy
E60
Implementation
What happens when a text classifier reads pixels instead of tokens?Raw text → Pillow renderer → CNN blocks → Training schedule → Class logits → Text-native control
E61
Evaluation
Before improving the network, test the representationSame document task → Visual branch → Training comparison → Random-feature control → Raw-text branch → Saved accuracy