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?
Problem
The forecasting pipeline currently saves trained model
.pklfiles to a local artifacts directory by default, which can fill up local directories over time.Current behavior
model-save-dirdefaults toflexmeasures/data/models/forecasting/artifacts/modelsdelete_modelflag, but it is not exposed to usersSuggestion
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-modelorpersist-model.Questions