spacetimeformer.linear_model package

class spacetimeformer.linear_model.linear_ar.LinearModel(context_points: int)[source]

Bases: torch.nn.modules.module.Module

forward(y_c)[source]

Defines the computation performed at every call.

Should be overridden by all subclasses.

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.

training: bool
class spacetimeformer.linear_model.linear_model.Linear_Forecaster(context_points: int, learning_rate: float = 0.001, l2_coeff: float = 0, loss: str = 'mse', linear_window: int = 0)[source]

Bases: spacetimeformer.forecaster.Forecaster

classmethod add_cli(parser)[source]
forward_model_pass(x_c, y_c, x_t, y_t)[source]
allow_zero_length_dataloader_with_multiple_devices: bool
property eval_step_forward_kwargs
precision: int
prepare_data_per_node: bool
property train_step_forward_kwargs
training: bool
use_amp: bool