Imp.Experiment.Data (Imp v0.5.0)

Copy Markdown View Source

Disjoint train, selection, and untouched-test data for Imp.Experiment.check/5.

Rows are identified before any optimizer or model call. By default identity is the deterministic content digest of the complete row. Pass id: :field_name (or an arity-one function) when the dataset has a stronger source identity. Duplicate identities within or across splits are rejected.

Summary

Functions

Returns the content-bound public description stored in experiment results.

Builds and validates a disjoint experiment dataset.

Returns the rows for a named split.

Types

split()

@type split() :: :train | :selection | :test

t()

@type t() :: %Imp.Experiment.Data{
  digests: %{required(split()) => String.t()},
  ids: %{required(split()) => [String.t()]},
  selection: [term()],
  test: [term()],
  train: [term()]
}

Functions

manifest(data)

@spec manifest(t()) :: map()

Returns the content-bound public description stored in experiment results.

new(opts)

@spec new(keyword()) :: t()

Builds and validates a disjoint experiment dataset.

split(data, split)

@spec split(t(), split()) :: [term()]

Returns the rows for a named split.