sddb.SplitManifest#

class sddb.SplitManifest(parent_hash: str, by: str, seed: int, ratios: dict[str, float], mode: str, assignments: dict[str, str])#

Per-uid fold assignment, pinned to the parent cohort hash, by key, seed and ratios.

by is the grouping column, or the name of the grouping function ("callable" for a lambda).

Attributes table#

Methods table#

load(path)

Load a manifest written by write().

write(path)

Write the manifest as JSON; return the path.

Attributes#

parent_hash: str#
by: str#
seed: int#
ratios: dict[str, float]#
mode: str#
assignments: dict[str, str]#

Methods#

classmethod load(path: str | Path) → SplitManifest#

Load a manifest written by write().

write(path: str | Path) → Path#

Write the manifest as JSON; return the path.