Skip to content

Stop persisting forecasting model artifacts by default #2111

@BelhsanHmida

Description

@BelhsanHmida

Problem

The forecasting pipeline currently saves trained model .pkl files to a local artifacts directory by default, which can fill up local directories over time.

Current behavior

  • model-save-dir defaults to flexmeasures/data/models/forecasting/artifacts/models
  • the training pipeline always writes the model file there
  • cleanup exists via an internal delete_model flag, but it is not exposed to users

Suggestion

Change the default behavior so trained model files are deleted after prediction unless persistence was explicitly requested.

Follow-up

We could expose the existing cleanup/persistence behavior as a user-facing parameter, for example save-model or persist-model.

Questions

  • Should this be exposed only as a CLI flag, or also via the API/config?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions