SIENTIAPDE-1273
Refactor return type of calculate_drift method in ModelMetrics class to improve compatibility. Changed from a list of dictionaries to a generic list for enhanced flexibility in data handling.
This commit is contained in:
@@ -138,7 +138,7 @@ class ModelMetrics(SientiaMonitoring):
|
|||||||
|
|
||||||
|
|
||||||
@activity.defn(name='calculate_drift')
|
@activity.defn(name='calculate_drift')
|
||||||
async def calculate_drift(self, input_data: dict[str, Any]) -> list[dict[Hashable, Any]]:
|
async def calculate_drift(self, input_data: dict[str, Any]) -> list:
|
||||||
"""
|
"""
|
||||||
Calculate drift metrics for a model.
|
Calculate drift metrics for a model.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user