factor_agent.segments.Segments.open_holdout#

Segments.open_holdout(lock_path, force=False)[source]#

Record an open of the hold-out in the lock at lock_path and return the lock.

Raises:
ValueError

If there is no hold-out segment.

HoldoutLocked

If the hold-out was opened before and force is false; the lock is unchanged.