Example Unit

An example unit defines what one row, item, case, or training example represents. It is the first data question because labels, splits, metrics, and leakage all depend on the unit.

A supervised dataset can be written as:

is the example unit identifier, is input, is the target, and is metadata.

Common Units

DomainPossible Example UnitTypical Context
Visionimage, video clip, frame, object instancecamera, scene, timestamp, annotation source
Languagedocument, passage, prompt, message, conversationsource, user request, retrieval context
Moleculesstandardized molecule, conformer, ligand, assay rowtarget, assay, endpoint, chemical state
Proteinssequence, residue, domain, structure, protein familyspecies, construct, structure source, MSA context
Structure-based modelingreceptor-ligand pair, pocket-ligand pair, pose, complexreceptor state, pocket definition, ligand pose source
Genome sequencesequence window, genomic region, variantreference genome, strand, coordinate system, cell or tissue context when public
Systemsrequest, job, run, event, user actionenvironment, version, time block, policy

Why It Matters

Changing the example unit changes the task. A molecule-level prediction, molecule-target prediction, and assay-measurement prediction can use similar features but answer different questions.

For pair or context-dependent tasks, the unit may be a tuple:

where is the main entity and is context such as target, assay, prompt, pocket, source, or time. The same entity can appear in multiple examples if the context changes.

Ambiguous Cases

  • Molecule property: unit may be molecule, assay row, molecule-target pair, or measurement.
  • Protein task: unit may be sequence, domain, family, structure, residue, or complex.
  • Docking task: unit may be receptor-ligand pair, pose, pocket-ligand pair, or screening candidate.
  • LLM task: unit may be prompt, message, conversation, document chunk, or user request.

Unit Changes That Change the Claim

If the unit isThe model claimsMain leakage risk
moleculea property attached to a chemical identityduplicate salts, tautomers, stereo variants, scaffold overlap
molecule-target pairtarget-conditioned activity or affinitysame molecule or same target appearing across splits
assay measurementa protocol-dependent observed valueassay, source, threshold, or campaign leakage
protein sequencesequence-level behaviorclose homologs across train and test
residuelocal annotation or residue-level outputsame protein split into train and test residues
protein-ligand posepose scoring or pose classificationgenerated poses from the same complex crossing splits
genomic regionregion-level predictionadjacent windows or same locus crossing splits

The unit should be chosen before model design. Otherwise the same score can be read as a stronger generalization claim than the dataset supports.

Minimal Contract

For a reusable note, state:

  • Unit identifier: what makes two examples the same or different.
  • Input fields: raw object, context object, metadata, and required preprocessing.
  • Label owner: whether the label belongs to the entity, pair, assay, pose, region, or run.
  • Split implication: which broader group must stay together.
  • Metric implication: whether metrics aggregate by row, entity, target, scaffold, family, or source.

Checks

  • What is exactly one example?
  • Can multiple rows describe the same underlying entity?
  • Does the target label belong to the example, a pair, a group, or a context?
  • What metadata is needed to interpret the label?
  • Does the split unit need to be broader than the example unit?
  • Would changing the unit change the loss, metric, or leakage risk?