stsb3.effectsEffectA context manager that changes the interpretation of an STS call.
ForecastEffectEffect handler for forecasting tasks.
From start to finish, the forecast operation consists of
Args:
root (block): the root of the STS graphNt (int): number of timesteps to forecastdesign_tensors (Dict[str, torch.Tensor]):_effect_callTurns an effect handler defined as a context manager into a callable.
Args:
obj (Effect): an effect
fn (callable): a callable
_forecast_offReverses a Block-like object from forecast to sample mode.
This does two things:
t1 -> t0t0 -> old t0Args:
obj (Block): the block to forecastt0 (int): the original initial timet1 (int): the original final time_forecast_onFast-forwards a Block-like object from sample to forecast mode.
This does two things:
t0 -> t1t1 -> t1 + NtArgs:
obj (Block): the block to forecastNt (int): the number of timesteps to forecast