Change warning condition on loading object saved under different library version #1270
Labels
enhancement
New feature or request
good first issue
Good for newcomers
priority/low
Low priority task
🚀 Feature Request
Currently we have this condition on loading object saved under different library version:
We should simplify this condition and give a warning if version is different:
current_etna_version != saved_etna_version
, because we don't have forward or backward compatibility for saving.Proposal
Change the condition in
etna.core.mixins.SaveMixin._validate_metadata
Test cases
Fix tests:
tests.test_core.test_mixins.test_save_mixin_load_warning
(1, 5, 0), (1, 3, 0)
(1, 5, 0), (1, 5, 1)
(1, 5, 1), (1, 5, 0)
tests.test_pipeline.test_save_mixin_load_warning
tests.test_ensembles.test_save_mixin_load_warning
tests.test_models.test_save_mixin_load_warning
Additional context
No response
The text was updated successfully, but these errors were encountered: