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
|
data.columns.name = None
|
||||||
|
|
||||||
self.debug("Processed input data:", metadata)
|
self.debug("Processed input data:", metadata)
|
||||||
data.to_csv('data.csv')
|
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(
|
||||||
model_name, data, model_config
|
model_name, data, model_config
|
||||||
)
|
)
|
||||||
|
|
||||||
self.debug("Raw response data:", metadata)
|
|
||||||
self.debug(response_data, metadata)
|
|
||||||
|
|
||||||
if response_data['success']:
|
if response_data['success']:
|
||||||
|
|
||||||
response_dataframe = DataFrame(response_data['content'])
|
response_dataframe = DataFrame(response_data['content'])
|
||||||
try:
|
try:
|
||||||
response_dataframe = self.detect_and_parse_datetime_index(
|
response_dataframe = self.detect_and_parse_datetime_index(
|
||||||
|
|||||||
Reference in New Issue
Block a user