SyntheticControlPlanner.profile_durations#
- SyntheticControlPlanner.profile_durations(durations, selection_origins, *, audit_origins=(), relative_lifts=None, absolute_lifts=None, target_lift, target_scale=None, exclusions=(), cadence=None, max_fits=24, fit_cost=None, min_training_periods=2, sample_kwargs=None)[source]#
Run the comparison twice and record cold and warm wall time.
- Parameters:
durations (
Sequence[int]) – Same contract ascompare_durations().selection_origins (
Sequence[Any]) – Same contract ascompare_durations().audit_origins (
Sequence[Any]) – Same contract ascompare_durations().relative_lifts (
Sequence[float] |None) – Same contract ascompare_durations().absolute_lifts (
Sequence[float] |None) – Same contract ascompare_durations().target_lift (
float) – Same contract ascompare_durations().target_scale (
str|None) – Same contract ascompare_durations().exclusions (
Sequence[Any]) – Same contract ascompare_durations().cadence (
Any) – Same contract ascompare_durations().max_fits (
int) – Same contract ascompare_durations().fit_cost (
float|None) – Same contract ascompare_durations().min_training_periods (
int) – Same contract ascompare_durations().sample_kwargs (
dict[str,Any] |None) – Same contract ascompare_durations().
- Returns:
Cold and warm seconds, the fit-versus-score split, and the process peak RSS. The peak includes the PyTensor cache. It is not a launch recommendation.
- Return type:
DurationProfile