whylogs.core.metrics.nlp_metrics
¶
Module Contents¶
Classes¶
Attributes¶
- whylogs.core.metrics.nlp_metrics.logger¶
- class whylogs.core.metrics.nlp_metrics.NLPMetrics(prediction_field: str = None, target_field: str = None)¶
- update(self, predictions: Union[List[str], str], targets: Union[List[str]], transform=None) None ¶
Function adds predictions and targets computation of nlp metrics.
- Parameters
predictions (Union[str,List[str]]) –
targets (Union[List[str],str]) –
- merge(self, other: NLPMetrics) NLPMetrics ¶
Merge two seperate nlp metrics
- Parameters
other – nlp metrics to merge with self
- Returns
merged nlp metrics
- Return type
- to_protobuf(self) whylogs.proto.NLPMetricsMessage ¶
Convert to protobuf
- Returns
Protobuf Message
- Return type
TYPE
- classmethod from_protobuf(cls: NLPMetrics, message: whylogs.proto.NLPMetricsMessage)¶