cleverly.load#
- cleverly.load(path: str | Path) Any[source]#
Load a complete result from a trusted joblib artifact.
Never load a file from an untrusted source: joblib deserialization can execute arbitrary Python code.
- Parameters:
- Returns:
TMLEResultorLongitudinalResultThe stored result, with the artifacts the file carried.
- Raises:
TypeErrorWhen the file holds no fitted causal result.
ValueErrorWhen the file holds data after the result.
- Warns:
VersionMismatchWarningWhen a different cleverly version wrote the file, or when the file records no version. The result then loads as saved, with no migration.