whylogs.core.metrics.regression_metrics

Module Contents

Classes

RegressionMetrics

Attributes

SUPPORTED_TYPES

whylogs.core.metrics.regression_metrics.SUPPORTED_TYPES = regression
class whylogs.core.metrics.regression_metrics.RegressionMetrics(prediction_field: str = None, target_field: str = None)
add(self, predictions: List[float], targets: List[float])

Function adds predictions and targets computation of regression metrics.

Parameters
  • predictions (List[float]) –

  • targets (List[float]) –

mean_absolute_error(self)
mean_squared_error(self)
root_mean_squared_error(self)
merge(self, other)

Merge two seperate confusion matrix which may or may not overlap in labels.

Parameters

other – regression metrics to merge with self

Returns

merged regression metrics

Return type

RegressionMetrics

to_protobuf(self)

Convert to protobuf

Returns

Protobuf Message

Return type

TYPE

classmethod from_protobuf(cls, message: whylogs.proto.RegressionMetricsMessage)