Module: tfa.metrics

View source on GitHub

Additional metrics that conform to Keras API.

Modules

cohens_kappa module: Implements Cohen's Kappa.

f_scores module: Implements F scores.

geometric_mean module: Implements GeometricMean.

hamming module: Implements Hamming distance and loss.

matthews_correlation_coefficient module: Matthews Correlation Coefficient Implementation.

multilabel_confusion_matrix module: Implements Multi-label confusion matrix scores.

r_square module: Implements R^2 scores.

utils module: Utilities for metrics.

Classes

class CohenKappa: Computes Kappa score between two raters.

class F1Score: Computes F-1 Score.

class FBetaScore: Computes F-Beta score.

class GeometricMean: Compute Geometric Mean

class HammingLoss: Computes hamming loss.

class MatthewsCorrelationCoefficient: Computes the Matthews Correlation Coefficient.

class MeanMetricWrapper: Wraps a stateless metric function with the Mean metric.

class MultiLabelConfusionMatrix: Computes Multi-label confusion matrix.

class RSquare: Compute R^2 score.

Functions

hamming_distance(...): Computes hamming distance.