SIENTIAPDE-1222
Refactor MLFlow logging to enhance data output clarity - Updated debug logging to use data.to_string() for processed input data, improving readability. - Modified raw response data logging to format the output as a string, ensuring consistent logging format.
This commit is contained in:
@@ -154,7 +154,7 @@ class MLFlow(BaseActivity):
|
|||||||
data.columns.name = None
|
data.columns.name = None
|
||||||
|
|
||||||
self.debug("Processed input data:", metadata)
|
self.debug("Processed input data:", metadata)
|
||||||
self.debug(data.to_csv('data.csv'), metadata)
|
self.debug(data.to_string(), metadata)
|
||||||
|
|
||||||
# Request transformation from MLFlow model
|
# Request transformation from MLFlow model
|
||||||
response_data = self.model_monitoring_repository.transform(
|
response_data = self.model_monitoring_repository.transform(
|
||||||
@@ -162,7 +162,7 @@ class MLFlow(BaseActivity):
|
|||||||
)
|
)
|
||||||
|
|
||||||
self.debug("Transform raw response data:", metadata)
|
self.debug("Transform raw response data:", metadata)
|
||||||
self.debug(response_data, metadata)
|
self.debug(f"{response_data}", metadata)
|
||||||
|
|
||||||
if response_data['success']:
|
if response_data['success']:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user