factor_agent.acceptance.Acceptance#
- class Acceptance(config, run_dir=None)[source]#
Bases:
objectValidate, open the hold-out of, and export a campaign’s accepted factors; see the module docstring.
- Parameters:
- configCampaignConfig
The campaign’s config; its
segmentsneedvalidation(andholdoutforopen_holdout).- run_dirstr or Path, optional
The campaign’s run directory;
config.run_dirby 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#
The ledger's accepted factors, in the order they were accepted. |
|
Export accepted factors as |
|
Open the hold-out, once, and compare on it with a selection, trained on the training and validation segments. |
|
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.