fraudtwin.GeneratedRun#

class fraudtwin.GeneratedRun(manifest, run_dir, manifest_path, dataset_path=None, dataset_manifest_path=None, stage_timings=<factory>)[source][source]#

Bases: object

Metadata and paths for a generated run written to disk.

Parameters:
  • manifest (RunManifest)

  • run_dir (Path)

  • manifest_path (Path)

  • dataset_path (Path | None)

  • dataset_manifest_path (Path | None)

  • stage_timings (dict[str, dict[str, float]])

property run_id: str#

Return the deterministic identifier for this generated run.

load_data()[source][source]#

Load the typed entities and behavior behind this written run.

A written run intentionally returns metadata and paths so large runs are not retained in memory. Call this method when a graph, dataset builder, or publisher needs the persisted domain records.

Raises:

ValueError – If the run directory is missing or has an invalid manifest or artifact.

Return type:

GeneratedData