Skip to content

Data contracts

A correct method on wrongly shaped data still gives a wrong answer. Each contract says what a method expects, what to prepare, how to split without leaking, and what to check.

Numeric tables

Loads in CodeSplash

Numeric columns: check units, scale and missingness, and split by subject or site before fitting any transform.

n rows × d numeric columns → groups, densities, embeddings or predictions

prepare
Units, scaling, outliers, censoring and missing values.
split
Split by subject or site before fitting any transform.
check
Distributions, residuals, missing-value patterns and calibration.
  • Data → Import loads CSV, Parquet, Excel and databases.
  • {{nav:model}} fits preprocessing inside each fold, and its split designer can keep each group's rows together.

Watch out: Scaling the whole table before splitting lets test rows shape the training features.

The glossary entry

Mixed categories and numbers

Loads in CodeSplash

Tables with categories: decide rare and unseen levels and the distance you use, and fit encoders on training rows only.

Encoded table → groups or predictions

prepare
What each category means, rare levels, a policy for unseen levels, and the distance you use.
split
Fit encoders on training rows only, so the outcome never leaks into the features.
check
Category counts, errors by subgroup and sensitivity to the encoding.
  • {{nav:model}} encodes categories inside each fold; k-prototypes, and PAM or hierarchical clustering with Gower distance, accept mixed columns.

Watch out: Target encoding fitted on all rows leaks the outcome into the features.

The glossary entry

Counts and sparse text

Loads in CodeSplash

Nonnegative count matrices, like word counts: fix the vocabulary and any exposure offsets on training data only.

Nonnegative count matrix → topics or factors

prepare
The vocabulary, exposure or offsets, and how zeros are handled.
split
Build the vocabulary and choose terms inside the training rows.
check
Sparsity, very common and very rare terms, and topic coherence and stability.
  • Topic models and NMF read word counts from a text column; {{nav:model}} fits text features inside each training fold.

The glossary entry

Compositions (parts of a whole)

Partly loads in CodeSplash

Parts that sum to a total, like budget shares: analyze log-ratios, choose how to treat zeros, keep samples from one source together.

Parts of a whole → log-ratios or hidden structure

prepare
How to treat zeros, which part is the reference, and the fixed total.
split
Keep samples from the same source together.
check
How results change with the reference part and the zero replacement.
  • Load them as a table; compute log-ratios in Prepare or SQL before clustering or regression.

The glossary entry

Time series

Loads in CodeSplash

Values in time order: keep that order, fit transforms on the past only, and test with rolling-origin backtests, not random splits.

batch × time × channels → forecasts, embeddings or anomalies

prepare
Time unit, regular spacing, resampling, lags, seasonality and masks.
split
Chronological or rolling-origin splits; no transform may see the future.
check
Residual autocorrelation, error by horizon, drift and alarms per event.
  • {{nav:forecast}} backtests from rolling origins; {{nav:model}}'s Split offers time order.

Watch out: A random split lets the model peek at the future, so its scores won't hold up in use.

The glossary entry

Text

Loads in CodeSplash

Token ids and masks: record the tokenizer and its version, split by document or source, and remove near-duplicates across splits.

Token ids and masks → token probabilities, embeddings or text

prepare
The tokenizer and its version, language, Unicode, truncation and chat template.
split
Group by document or source, and remove near-duplicates across splits.
check
Token lengths, rare tokens, sensitivity to the prompt, and factual errors.
  • Text columns load with the table; text methods record the pretrained model they used.

Watch out: Near-duplicate documents on both sides of a split inflate every score.

The glossary entry

Images

Loads in CodeSplash (Experimental)

Pixel arrays with a stated layout, color space and range: group splits by subject, scene or source, never by crop or patch.

batch × channels × height × width (or channels last) → labels, masks or images

prepare
Color space, value range, resizing and cropping, and augmentation.
split
Group by subject, scene or source; patches of one image never cross splits.
check
Error galleries, calibration and robustness to corruptions; read attributions with care.
  • Data → Import → Add image folder… links images in place; image methods are Experimental.

Watch out: Patches or crops of one image on both sides of a split leak the answer.

The glossary entry

Audio waveforms

Loads in CodeSplash (Experimental)

Samples over time per channel: fix the sample rate, channels and level, and split by speaker, recording and source mixture.

batch × channels × samples → transcripts, audio or embeddings

prepare
Sample rate, channels, level, clipping and silence.
split
Split by speaker, recording and source mixture.
check
Waveforms and spectrograms, word error rate, SI-SDR, intelligibility and listening tests.
  • Data → Import → Add audio folder… links clips in place; audio methods are Experimental.

Watch out: Clips of one speaker on both sides of a split make a recognizer look better on new speakers than it is.

The glossary entry

Spectrograms

Loads in CodeSplash (Experimental)

Frequency × time pictures of sound: record the window, hop, mel bins and log floor, and fit normalization on training recordings.

batch × frequency × time → an acoustic representation

prepare
Window and hop, mel bins, log floor and normalization.
split
Fit the normalization on training recordings only.
check
Time and frequency resolution, and artifacts when turning it back into audio.
  • audio.features computes STFT and mel features from linked audio (Experimental).

The glossary entry

Symbolic music

Needs a data type CodeSplash doesn't load yet

Note events with timing, pitch, duration and instrument: quantize consistently and split by composition or performer, not by bar.

Note events (timing, pitch, duration, instrument) → events

prepare
Timing, pitch, duration, instrument and quantization.
split
Split by composition or performer, not by bar.
check
Musical structure and repetition; render the result and listen.
  • MIDI-like event files aren't loaded yet; the Academy explains the methods.

The glossary entry

Video

Needs a data type CodeSplash doesn't load yet

Frames over time with timestamps: record the frame rate and sampling, and keep every clip from a source video in the same split.

batch × time × channels × height × width → actions, tracks or video

prepare
Frame rate, timestamps, which frames are sampled, and consistent crops.
split
Keep every clip from a source video together.
check
Motion, flicker, identity over time, tracking and timing of events.
  • Video files stay Academy-only. Tracking runs on detection tables, one row per box per frame.

Watch out: Clips cut from one video on both sides of a split leak scenes and people.

The glossary entry

Graphs and networks

Loads in CodeSplash (Experimental)

Nodes, edges and their features: state direction, weights and self-loops, and say whether test nodes or edges were visible in training.

Nodes, node features and edges → node, edge or graph outputs

prepare
Direction, weights, edge types, self-loops and missing edges.
split
Say whether test nodes and edges were visible during training, and hide test edges first.
check
Degree bias, oversmoothing, structural leakage and uncertainty across graphs.
  • Graph methods read an edge table plus an optional node table (Experimental).

Watch out: Computing embeddings on the full graph lets held-out edges shape the training features.

The glossary entry

Point clouds and geometry

Partly loads in CodeSplash

Sets of points, normals or meshes: record the coordinate frame, units and sampling density, and split by object or scene.

Points, normals or meshes → geometry or labels

prepare
Coordinate frame, units, rotation and sampling density.
split
Split by object or scene, never overlapping subsets of points.
check
Invariance or equivariance checks, geometric error and sensitivity to density.
  • Points stored as table rows grouped by object run in the set models; meshes aren't loaded.

The glossary entry

Molecules and physical systems

Needs a data type CodeSplash doesn't load yet

Atoms, positions, bonds or fields: keep units and symmetries explicit and split by molecule, trajectory or regime.

Atoms, positions, bonds or fields → energies, forces or operators

prepare
Units, symmetries, boundary conditions and physical constraints.
split
Split by molecule, trajectory or regime, matching how far you'll extrapolate.
check
Forces that agree with energies, conservation, and error outside the training regime.
  • Molecular structures aren't loaded yet; the Academy explains the methods.

The glossary entry

Paired modalities

Loads in CodeSplash (Experimental)

Aligned text, images, audio or video: record the alignment and a policy for missing modalities, and split by the shared source.

Aligned text, images, audio or video → joint embeddings or generation

prepare
Alignment, timestamps, modality masks and a policy for missing modalities.
split
Split by the original shared source, across every modality.
check
Alignment, removing one modality at a time, synchronization, and missing or corrupted inputs.
  • Image–text methods pair an image folder with a text column (Experimental).

Watch out: A caption and its image in different splits still leak the pair.

The glossary entry

Reinforcement-learning trajectories

Loads in CodeSplash

Steps of state, action, reward, next state and done: separate time limits from real endings and evaluate on separate seeds.

(state, action, reward, next state, done) → policy, value or action

prepare
Time limits versus real endings, action bounds and reward scale.
split
Keep evaluation environments and seeds separate from training and from logged behavior data.
check
The spread of returns, how well actions are covered, off-policy error and constraint violations.
  • The Policy learning studio learns from logged trajectories and simulated environments.

The glossary entry

Choose a method family · Turn media into features