SIENTIAPDE-1222
Refactor MLFlow logging to improve data output clarity - Updated the debug logging to directly capture the output of data.to_csv, enhancing traceability of processed input data. - Removed redundant debug statements for raw response data to streamline logging and focus on essential information.
This commit is contained in:
@@ -154,18 +154,15 @@ class MLFlow(BaseActivity):
|
||||
data.columns.name = None
|
||||
|
||||
self.debug("Processed input data:", metadata)
|
||||
data.to_csv('data.csv')
|
||||
self.debug(data.to_string(), metadata)
|
||||
self.debug(data.to_csv('data.csv'), metadata)
|
||||
|
||||
# Request transformation from MLFlow model
|
||||
response_data = self.model_monitoring_repository.transform(
|
||||
model_name, data, model_config
|
||||
)
|
||||
|
||||
self.debug("Raw response data:", metadata)
|
||||
self.debug(response_data, metadata)
|
||||
|
||||
if response_data['success']:
|
||||
|
||||
response_dataframe = DataFrame(response_data['content'])
|
||||
try:
|
||||
response_dataframe = self.detect_and_parse_datetime_index(
|
||||
|
||||
Reference in New Issue
Block a user