scoring_parent#
Resolve one fingerprinted checkpoint parent for every downstream search stage.
Classes
Functions
- class ScoringParent#
Bases:
object- __init__(path, role, fingerprint, sorted_teacher_path, sorted_teacher_fingerprint, bypass_manifest_path=None, bypass_manifest_fingerprint=None)#
- Parameters:
path (Path)
role (str)
fingerprint (str)
sorted_teacher_path (Path)
sorted_teacher_fingerprint (str)
bypass_manifest_path (Path | None)
bypass_manifest_fingerprint (str | None)
- Return type:
None
- bypass_manifest_fingerprint: str | None = None#
- bypass_manifest_path: Path | None = None#
- fingerprint: str#
- path: Path#
- role: str#
- sorted_teacher_fingerprint: str#
- sorted_teacher_path: Path#
- to_dict()#
- Return type:
dict[str, Any]
- ensure_scoring_parent(config, *, refresh=False)#
- Parameters:
config (dict[str, Any])
refresh (bool)
- Return type:
- load_scoring_parent(path)#
- Parameters:
path (str | Path)
- Return type:
- resolve_scoring_parent(config)#
- Parameters:
config (dict[str, Any])
- Return type:
- write_scoring_parent(parent, path)#
- Parameters:
parent (ScoringParent)
path (str | Path)
- Return type:
Path