SIENTIAPDE-1222
Refactor MLFlow debug logging for improved readability - Reformatted debug logging statements in the MLFlow activity to enhance clarity and consistency. - Ensured that the output of raw and transformed response data is presented in a more readable format, maintaining the use of create_sample_dict for better visualization.
This commit is contained in:
@@ -161,8 +161,8 @@ class MLFlow(BaseActivity):
|
||||
model_name, data, model_config
|
||||
)
|
||||
|
||||
self.debug(f"Transform raw response data: \n {create_sample_dict(
|
||||
response_data)}", metadata)
|
||||
self.debug(
|
||||
f"Transform raw response data: \n {create_sample_dict(response_data)}", metadata)
|
||||
|
||||
if response_data['success']:
|
||||
|
||||
@@ -193,8 +193,8 @@ class MLFlow(BaseActivity):
|
||||
|
||||
response_data['content'] = response_dataframe.to_dict()
|
||||
|
||||
self.debug(f"Transform response data: \n {create_sample_dict(
|
||||
response_data)}", metadata)
|
||||
self.debug(
|
||||
f"Transform response data: \n {create_sample_dict(response_data)}", metadata)
|
||||
|
||||
self.info("Data transformed successfully", metadata)
|
||||
|
||||
@@ -246,8 +246,8 @@ class MLFlow(BaseActivity):
|
||||
model_name, data, model_config
|
||||
)
|
||||
|
||||
self.debug(f"Prediction response data: \n {create_sample_dict(
|
||||
response_data)}", metadata)
|
||||
self.debug(
|
||||
f"Prediction response data: \n {create_sample_dict(response_data)}", metadata)
|
||||
|
||||
self.info("Data predicted successfully", metadata)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user