NEDSEvalTrainer#
- class ts1.models.pretrained.NEDSEvalTrainer(cfg, rank, world_size)[source]#
Bases:
ts1.ts1_eval_trainer.TS1EvalTrainer- setup_model(ckpt)[source]#
Instantiate and register the model.
Instantiates the model from the Hydra config and registers it for checkpointing. Override this to load pretrained weights or modify the model architecture.
- link_model(model, ckpt)[source]#
Link datasets to the model and configure the readout head.
Attaches model-specific transforms and input_fn to the train/val/test dataset pipelines, then calls
model.link_datasetsandmodel.configure_readoutto wire up the readout head for the current task.
- predict(X, target_timestamps=None, target_mask=None)[source]#
Generate model predictions for a batch.
Override this if the model requires target timestamps or mask at inference time (e.g. for masked prediction models).
- Parameters:
X – Input batch dict containing
model_inputs.target_timestamps – Optional target timestamps tensor.
target_mask – Optional boolean mask tensor for the targets.
- Returns:
Model output predictions.
- Return type: