SIENTIAPDE-1712

SIENTIAPDE-1712 Enhance logging across various classes by adding logger parameters and improving debug statements. This update includes adjustments in Gates, MLFlow, ModelMetrics, and MLFlowRepository classes for better traceability and observability during operations.
This commit is contained in:
vitor-aignosi
2026-04-01 13:53:23 -03:00
parent b9fe4604f7
commit 381856f5ca
9 changed files with 74 additions and 31 deletions

View File

@@ -27,13 +27,13 @@ warnings.filterwarnings(
class ModelMetrics(SientiaMonitoring):
"""
_MAX_DEBUG_DATAFRAME_ROWS = 100
Metrics activities for the Laborious system.
This class provides activities for writing metrics to the Prometheus monitoring system.
"""
_MAX_DEBUG_DATAFRAME_ROWS = 100
def __init__(
self,
logger: Logger,
@@ -99,7 +99,9 @@ class ModelMetrics(SientiaMonitoring):
model_analysis = ModelAnalysis(config=config)
self._debug_dataframe(f'Reference data: Size {reference_data.shape}', reference_data, metadata)
self._debug_dataframe(
f'Reference data: Size {reference_data.shape}', reference_data, metadata
)
self._debug_dataframe(f'Target data: Size {target_data.shape}', target_data, metadata)