SIENTIAPDE-1182
Enhance tests.ipynb and gates.py for improved logging and output clarity - Set execution count to null in tests.ipynb for reproducibility. - Added stdout output to tests.ipynb for better visibility of results. - Updated DataFrame display logic in tests.ipynb to include additional print statements for length and size. - Improved debug logging in gates.py to log prediction data as a string for better traceability. - Changed info log in gates.py to use len() instead of size for consistency.
This commit is contained in:
@@ -409,6 +409,7 @@ class Gates(BaseActivity):
|
||||
|
||||
self.debug(
|
||||
f"Prediction store policy: {prediction_store_policy}", metadata)
|
||||
self.debug(f"Prediction data: {data.to_string()}", metadata)
|
||||
|
||||
policy_type, policy_value = self.get_prediction_store_policy(
|
||||
prediction_store_policy, metadata)
|
||||
@@ -442,7 +443,7 @@ class Gates(BaseActivity):
|
||||
data = data.sort_values(by='timestamp', ascending=False)
|
||||
data = data.reset_index(drop=True)
|
||||
|
||||
self.info(f"Prediction formatted: {data.size} rows", metadata)
|
||||
self.info(f"Prediction formatted: {len(data)} rows", metadata)
|
||||
self.debug(f"Prediction data: {data.to_string()}", metadata)
|
||||
|
||||
return data.to_dict()
|
||||
|
||||
Reference in New Issue
Block a user