factor_agent.acceptance.Acceptance#

class Acceptance(config, run_dir=None)[source]#

Bases: object

Validate, open the hold-out of, and export a campaign’s accepted factors; see the module docstring.

Parameters:
configCampaignConfig

The campaign’s config; its segments need validation (and holdout for open_holdout).

run_dirstr or Path, optional

The campaign’s run directory; config.run_dir by default.

The accepted graphs are read with the vocabulary of the run’s snapshot
(``RunSnapshot``), not of the config’s field and operator files.
Raises:
FileNotFoundError

If the run directory has no snapshot.

Methods#

Acceptance.accepted

The ledger's accepted factors, in the order they were accepted.

Acceptance.export

Export accepted factors as GraphFactor subclasses and whole-market stores.

Acceptance.open_holdout

Open the hold-out, once, and compare on it with a selection, trained on the training and validation segments.

Acceptance.validate

Compare the baseline with the baseline plus a selection of the accepted factors on the validation segment.

Attributes#

Acceptance.lock_path#

The hold-out lock.

Acceptance.vocabulary#

The campaign’s vocabulary, from its run’s snapshot: the operator classes the accepted graphs are built from.