Expand description
Public Rust facade for dag-ml-data.
Modules§
- adapter
- aggregation
- ADR-07 canonical prediction-aggregation reducer contract.
- alignment
- buffer
- buffer_
file_ store - Deterministic binary persistence for
NumericFeatureBufferStore. - builtin_
models - Canonical built-in data-model declarations.
- collation
- coordinator
- error
- fingerprint
- fitted_
adapter - fusion
- handle
- ids
- model
- nd_
tensor - Borrowed N-D tensor transport: host-owned dense tensors (e.g. uint8
[N,H,W,C]RGB, float32[N,H,W,Wavelength]hyperspectral) copied into provider-owned, canonical row-major storage, keyed and gathered byobservation_id. - plan
- planner
- relation
- representation_
registry - Frozen, published catalogue of the built-in representation IDs (
B-014/DMD-001).
Structs§
- Adapter
Path - Adapter
Registry - Adapter
Registry Spec - Adapter
Spec - Aggregation
Policy - Aggregation policy: which reducer collapses repeated predictions to one value
per sample, plus the single parameter that reducer accepts. Parameters that
do not belong to the chosen reducer must be absent (enforced by
validate).Nonenumeric parameters take the ADR-07 defaults (DEFAULT_TRIM_FRACTION,DEFAULT_THRESHOLD). - Alignment
Policy - Augmentation
Metadata - Axis
Size Contract - Axis
Spec - Builtin
Data Model Spec - Collation
Policy - Coordinate
Spec - Typed coordinate contract for an axis, so methods can machine-rely on the coordinate dtype, ordering and (for numeric) regular-grid structure rather than re-deriving them from untyped JSON.
- Coordinator
Branch View - Coordinator
Branch View Selector - Coordinator
Data Handle Record - Coordinator
Data Materialization Request - Coordinator
Data Plan Envelope - Coordinator
Data View Record - Coordinator
Feature Block - Coordinator
Feature Block F64 - Typed sibling of
CoordinatorFeatureBlock: the same projection with the cells flattened row-major into oneVec<f64>instead of per-cell JSON values. Produced by the*_f64projection path so a large numeric block never allocatesrows × colsboxedserde_json::Values. Masked cells are rejected by that path (it has noNullto project them into). - Coordinator
Feature Row - Coordinator
Feature Table - Coordinator
Handle Arena - Coordinator
Handle Ref - Coordinator
Multi Target Block - Coordinator
Relation - Coordinator
Relation Set - Coordinator
Target Block - Coordinator
Target Table - Coordinator
Target Value - Data
Error Descriptor - A stable ADR-11 error payload that can be serialized across bindings.
- Data
Plan - Data
Plan Request - Data
Plan Step - Data
View - Dataset
Schema - Feature
Fusion Policy - Feature
Fusion Source Layout - Fitted
Adapter Handle Record - Fitted
Adapter Manifest - Fitted
Adapter Manifest Entry - Fitted
Adapter Materialization Request - Fitted
Adapter Ref - Fold
Assignment - FoldSet
- Exhaustive partition-style fold assignments.
- Fold
Spec - GroupId
- Group
Spec - InMemory
Fitted Adapter Store - Input
Port Spec - Metadata
Field Spec - Metadata
Schema - Model
Input Spec - MvpStatus
- MVP profile membership for a published representation ID.
- NdTensor
- A stored, immutable, contiguous row-major N-D tensor.
- NdTensor
Arena - A store plus per-data-handle bindings, mirroring
NumericFeatureBufferArena. - NdTensor
Binding - Binding of one stored tensor to a materialized data handle.
- NdTensor
Block - A relation-ordered, axis-0-filtered export of a stored tensor.
shape[0]is the number of selected rows;datais contiguous row-major bytes. - NdTensor
Input - A canonical (contiguous row-major) N-D tensor handed to the store. The C ABI layer copies any strided borrowed input into this shape before calling in.
- NdTensor
Manifest - Provider-wide manifest of one stored tensor (no payload bytes).
- NdTensor
Store - An immutable collection of N-D tensors keyed by
tensor_id. - Numeric
Collation Input Block - Numeric
Feature Buffer - Numeric
Feature Buffer Arena - Numeric
Feature Buffer Binding - Numeric
Feature Buffer Manifest - Numeric
Feature Buffer Store - Numeric
Feature Matrix F64 - Numeric
Feature Matrix F64Columnar - Numeric
Tensor Block - Observation
Id - Origin
Id - Path
Resolution - Plan
Issue - Planning
Policy - Presence
Mask - Registered
Representation - One frozen, published entry of the built-in representation registry.
- Repetition
Id - Representation
Id - Representation
Node - Representation
Registry - The frozen, published catalogue of built-in representation IDs.
- Representation
Spec - Sample
Alignment Plan - Sample
Id - Sample
Relation - Sample
Relation Table - Shape
Contract - Source
Concat Layout - Source
Descriptor - Source
Feature Block - Source
Feature Layout Block - Source
Id - Source
Preprocessing Output - Source
Sample Set - Target
Id - TypeId
Enums§
- Aggregation
Reducer Name - Canonical per-sample aggregation reducer name (ADR-07).
- Alignment
Mode - Axis
Kind - Builtin
Data Model - Collation
Padding - CoordinateD
Type - Element dtype of an axis coordinate sequence.
- Coordinate
Values - Axis coordinate values: either an explicit per-index list or a regular
numeric grid (
value(i) = start + i * step, count taken from the axis size). - Coordinator
Branch View Mode - Coordinator
Handle Kind - Data
Error - Data
Plan Step Kind - FitScope
- Fitted
Adapter Backend - Group
Kind - Metadata
Value Kind - MvpEmission
Status - Cross-repo publication status of a representation ID inside an MVP profile.
- NdTensorD
Type - Element dtype of an N-D tensor. The C ABI exposes a matching
#[repr(C)]DagMlDataTensorDTypeenum and maps to/from this type explicitly; this core enum carries no ABI guarantee of its own. - Prediction
Task Kind - Prediction task kind needed to validate task-sensitive reducers. This is a
deliberately tiny enum; the bridge maps its richer task type into it. It does
not make
dag-ml-datathe home of DAG-ML task semantics. - Signal
Kind - Source
Concat Axis - Source
Feature Layout Kind - Source
Granularity
Constants§
- BUILTIN_
DATA_ MODELS - CANONICAL_
AGGREGATION_ REDUCERS - The canonical reducer names. The
customescape hatch is intentionally not listed; it is addressed bycustom_reducer_idinstead. This array is the source of truth for the canonical set (the conformance pack pins only the C ABI validator symbol, not a shared reducer list). - COORDINATOR_
BRANCH_ VIEW_ SCHEMA_ ID - COORDINATOR_
BRANCH_ VIEW_ SCHEMA_ VERSION - COORDINATOR_
DATA_ PLAN_ ENVELOPE_ SCHEMA_ VERSION - DEFAULT_
THRESHOLD - Default
thresholdforexclude_outlierswhen unspecified (ADR-07). - DEFAULT_
TRIM_ FRACTION - Default
trim_fractionforrobust_meanwhen unspecified (ADR-07). - FITTED_
ADAPTER_ MANIFEST_ SCHEMA_ VERSION - FITTED_
ADAPTER_ REF_ SCHEMA_ ID - FITTED_
ADAPTER_ REF_ SCHEMA_ VERSION - MVP_
PROFILE_ SPECTRA_ IMAGE - Name of the spectra+image MVP profile defined by
B-014/IO_spec.md§5. - ND_
TENSOR_ MANIFEST_ SCHEMA_ VERSION - Schema version of
NdTensorManifest/NdTensorBinding. - ND_
TENSOR_ MAX_ RANK - Maximum supported tensor rank. Bounds the shape-product arithmetic and keeps the contract finite.
- NUMERIC_
FEATURE_ BUFFER_ FILE_ FORMAT_ VERSION - NUMERIC_
FEATURE_ BUFFER_ MANIFEST_ SCHEMA_ VERSION - REPRESENTATION_
CLIMATE_ SERIES_ MV - REPRESENTATION_
CUBE_ HWB - REPRESENTATION_
DOSAGE_ MATRIX - REPRESENTATION_
FEATURE_ BLOCK_ SET - REPRESENTATION_
FTIR_ SIGNAL - REPRESENTATION_
GRAY_ IMAGE - REPRESENTATION_
HYPERSPECTRAL_ CUBE - REPRESENTATION_
MASS_ SPECTRUM - REPRESENTATION_
MC_ IMAGE - REPRESENTATION_
MULTISPECTRAL_ IMAGE - REPRESENTATION_
RAMAN_ SIGNAL - REPRESENTATION_
REGISTRY_ ID - Stable identifier of the representation registry contract.
- REPRESENTATION_
REGISTRY_ SCHEMA_ VERSION - Wire-shape version of the published representation registry manifest.
- REPRESENTATION_
REGISTRY_ SOURCE - Repo-relative provenance of the frozen representation IDs.
- REPRESENTATION_
RGB_ IMAGE - REPRESENTATION_
ROI_ MASK - REPRESENTATION_
SAMPLE_ METADATA - REPRESENTATION_
SEGMENTATION_ MASK - REPRESENTATION_
SERIES_ MV - REPRESENTATION_
SIGNAL_ 1D - REPRESENTATION_
SIGNAL_ WITH_ PROCESSINGS - REPRESENTATION_
TABULAR_ MIXED - REPRESENTATION_
TABULAR_ NUMERIC - REPRESENTATION_
TARGET_ CATEGORICAL - REPRESENTATION_
TARGET_ CATEGORICAL_ MATRIX - REPRESENTATION_
TARGET_ NUMERIC - REPRESENTATION_
TARGET_ NUMERIC_ MATRIX - REPRESENTATION_
TEXT_ RAW - REPRESENTATION_
TEXT_ TOKEN_ IDS - REPRESENTATION_
VARIANT_ MATRIX - TYPE_
DENSE_ SIGNAL - TYPE_
GENOTYPE_ MATRIX - TYPE_
GRAY_ IMAGE - TYPE_
HYPERSPECTRAL_ CUBE - TYPE_
IMAGE_ RGB - TYPE_
LABEL_ MASK - TYPE_
MASS_ SPEC - TYPE_
METADATA - TYPE_
MULTICHANNEL_ IMAGE - TYPE_
MULTI_ BLOCK - TYPE_
TABLE - TYPE_
TARGET - TYPE_
TEXT - TYPE_
TIME_ SERIES
Traits§
- Runtime
Fitted Adapter Store - Runtime contract for materializing opaque host-owned fitted-adapter
handles from a previously registered
FittedAdapterRef. The store validates the request’sparams_fingerprintagainst the registered ref and returns the opaque handle id. It never reads, writes or deserializes adapter payloads — payload materialization happens host-side, behind the opaque handle.
Functions§
- alignment_
metadata - alignment_
mode_ from_ fusion - build_
sample_ alignment_ plan - builtin_
adapter_ registry_ spec - builtin_
data_ model_ specs - builtin_
representations - collate_
feature_ block - collate_
numeric_ block - coordinator_
relations_ from_ sample_ table - data_
plan_ fingerprint - default_
builtin_ planning_ policy - deserialize_
columnar_ store - Parse a
.n4dbyte stream back into a store. Rejects unknown magic, unsupported versions, truncated streams, and any tampering of the payload caught by SHA-256 mismatch. - feature_
block_ set - fold_
set_ fingerprint - ftir_
signal - fuse_
feature_ blocks - genotype_
dosage_ matrix - genotype_
variant_ matrix - gray_
image - hyperspectral_
cube - mass_
spectrum - multichannel_
image - multispectral_
image - numeric_
input_ from_ feature_ block - plan_
model_ input - raman_
signal - read_
store_ from_ path - Read a store back from
path. Errors propagate the validation failure fromdeserialize_columnar_storealongside the path for diagnostics. - representation_
registry - Build the frozen, published catalogue of built-in representation IDs from
BUILTIN_DATA_MODELS. The result is deterministic and source-order stable. - require_
signal_ type_ match - Validate that a provider-declared
actualsignal type matches theexpectedone the plan or bundle records (ADR-06). TheUnknownpolicy is the caller’s: passallow_unknown = trueat train time (an untagged signal type is tolerated) andfalseat predict time (a trained pipeline must carry a concrete signal type, so any difference — includingUnknown— is refused). - rgb_
image - roi_
mask - sample_
metadata - sample_
relation_ fingerprint - schema_
fingerprint - segmentation_
mask - serialize_
columnar_ store - Serialize a store to its deterministic
.n4dbyte stream. The output ends with a 32-byte SHA-256 of all preceding bytes so callers can distinguish truncation from intentional empty stores and detect any later tampering throughdeserialize_columnar_store. - series_
mv - signal_
1d - signal_
with_ processings - source_
sample_ set_ from_ feature_ block - tabular_
mixed - tabular_
numeric - tabular_
numeric_ model_ input_ spec - target_
categorical - target_
categorical_ matrix - target_
numeric - target_
numeric_ matrix - text_
raw - text_
token_ ids - validate_
model_ input_ spec_ against_ registry - Validate that a model-input/data-requirements contract consumes only
published representation IDs, and that each accepted representation’s frozen
type_idand rank are allowed by the port. - write_
store_ to_ path - Write a store to
path. Replaces any existing file at the destination.