whylogs.core.model_performance_metrics
#
Submodules#
Package Contents#
Classes#
Container class for various model-related performance metrics |
- class whylogs.core.model_performance_metrics.ModelPerformanceMetrics(confusion_matrix: Optional[whylogs.core.model_performance_metrics.confusion_matrix.ConfusionMatrix] = None, regression_metrics: Optional[whylogs.core.model_performance_metrics.regression_metrics.RegressionMetrics] = None, metrics: Optional[Dict[str, whylogs.core.metrics.metrics.Metric]] = None, field_metadata: Optional[Dict[str, Set[str]]] = None)#
Container class for various model-related performance metrics
- Parameters
confusion_matrix (Optional[whylogs.core.model_performance_metrics.confusion_matrix.ConfusionMatrix]) –
regression_metrics (Optional[whylogs.core.model_performance_metrics.regression_metrics.RegressionMetrics]) –
metrics (Optional[Dict[str, whylogs.core.metrics.metrics.Metric]]) –
- confusion_matrix#
ConfusionMatrix which keeps it track of counts with NumberTracker
- Type
- regression_metrics#
Regression Metrics keeps track of a common regression metrics in case the targets are continous.
- Type
- to_protobuf() whylogs.core.proto.v0.ModelProfileMessage #
- Return type
whylogs.core.proto.v0.ModelProfileMessage
- classmethod from_protobuf(message: whylogs.core.proto.v0.ModelProfileMessage) ModelPerformanceMetrics #
- Parameters
message (whylogs.core.proto.v0.ModelProfileMessage) –
- Return type
- compute_confusion_matrix(predictions: List[Union[str, int, bool, float]], targets: List[Union[str, int, bool, float]], scores: Optional[List[float]] = None)#
computes the confusion_matrix, if one is already present merges to old one.
- merge(other) ModelPerformanceMetrics #
- Return type