feat: enhance training and experiment tracking functionality

- Updated `Activities` class to improve garbage collection handling.
- Enhanced error messaging in `ExperimentTracking` for better clarity on update failures.
- Refactored `Training` class to streamline exception handling and improve type hints.
- Introduced new methods in `TrainModelParams` for better handling of experiment run IDs and model metadata.
- Added functionality to extract model equations in `DataManagerRepository` for linear regression models.
This commit is contained in:
vitor-aignosi
2026-04-06 15:05:57 -03:00
parent 1352d1ac8f
commit 6b1df7c3a7
22 changed files with 1751 additions and 2085 deletions

View File

@@ -867,6 +867,13 @@ def test_linear_regression_model_get_regressor():
# ============================================================================
def test_data_preprocessor_parse_datetime_with_frontend_format():
"""When date_format is set, _parse_datetime uses strftime mapping (covers format branch)."""
preprocessor = DataPreprocessor(date_format='dd/MM/yyyy HH:mm:ss')
ts = preprocessor._parse_datetime('15/01/2024 10:30:00')
assert ts is not None
@patch('model_manager.sientia.models.treat_nan')
def test_data_preprocessor_treat_discontinuities_linear_interpolation(mock_treat_nan):
"""Test treat_discontinuities with 'linear interpolation' treatment."""