simpleml.metrics.classification

Module for classification metrics https://en.wikipedia.org/wiki/Confusion_matrix

Includes base class and derived metrics following the nomenclature:

ConstraintValueMetric

Where:

Constraint is the lookup criteria (ex FPR in ROC curve) Value is desired value (ex TPR in ROC curve)

This module is organized by metric and prediction dependencies:
  1. Base classes with methods and utilities

  2. Aggregate Metrics (single value output)

    2a) Single values computed via Predict method (operating points) 2b) Single values computed via proba method (agg over curve)

  3. Curve Metrics (constraint: value)

    3a) Threshold: confusion matrix metrics 3b) confusion matrix metrics: threshold or other metrics

Module Contents

Classes

AccuracyMetric

TODO: Figure out multiclass generalizations

AggregateBinaryClassificationMetric

TODO: Figure out multiclass generalizations

BinaryClassificationMetric

TODO: Figure out multiclass generalizations

ClassificationMetric

TODO: Figure out multiclass generalizations

F1ScoreMetric

TODO: Figure out multiclass generalizations

FdrAccuracyMetric

TODO: Figure out multiclass generalizations

FdrF1ScoreMetric

TODO: Figure out multiclass generalizations

FdrFnrMetric

TODO: Figure out multiclass generalizations

FdrForMetric

TODO: Figure out multiclass generalizations

FdrFprMetric

TODO: Figure out multiclass generalizations

FdrInformednessMetric

TODO: Figure out multiclass generalizations

FdrMarkednessMetric

TODO: Figure out multiclass generalizations

FdrMccMetric

TODO: Figure out multiclass generalizations

FdrNpvMetric

TODO: Figure out multiclass generalizations

FdrPpvMetric

TODO: Figure out multiclass generalizations

FdrPredictedNegativeRateMetric

TODO: Figure out multiclass generalizations

FdrPredictedPositiveRateMetric

TODO: Figure out multiclass generalizations

FdrThresholdMetric

TODO: Figure out multiclass generalizations

FdrTnrMetric

TODO: Figure out multiclass generalizations

FdrTprMetric

TODO: Figure out multiclass generalizations

FnrAccuracyMetric

TODO: Figure out multiclass generalizations

FnrF1ScoreMetric

TODO: Figure out multiclass generalizations

FnrFdrMetric

TODO: Figure out multiclass generalizations

FnrForMetric

TODO: Figure out multiclass generalizations

FnrFprMetric

TODO: Figure out multiclass generalizations

FnrInformednessMetric

TODO: Figure out multiclass generalizations

FnrMarkednessMetric

TODO: Figure out multiclass generalizations

FnrMccMetric

TODO: Figure out multiclass generalizations

FnrNpvMetric

TODO: Figure out multiclass generalizations

FnrPpvMetric

TODO: Figure out multiclass generalizations

FnrPredictedNegativeRateMetric

TODO: Figure out multiclass generalizations

FnrPredictedPositiveRateMetric

TODO: Figure out multiclass generalizations

FnrThresholdMetric

TODO: Figure out multiclass generalizations

FnrTnrMetric

TODO: Figure out multiclass generalizations

FnrTprMetric

TODO: Figure out multiclass generalizations

ForAccuracyMetric

TODO: Figure out multiclass generalizations

ForF1ScoreMetric

TODO: Figure out multiclass generalizations

ForFdrMetric

TODO: Figure out multiclass generalizations

ForFnrMetric

TODO: Figure out multiclass generalizations

ForFprMetric

TODO: Figure out multiclass generalizations

ForInformednessMetric

TODO: Figure out multiclass generalizations

ForMarkednessMetric

TODO: Figure out multiclass generalizations

ForMccMetric

TODO: Figure out multiclass generalizations

ForNpvMetric

TODO: Figure out multiclass generalizations

ForPpvMetric

TODO: Figure out multiclass generalizations

ForPredictedNegativeRateMetric

TODO: Figure out multiclass generalizations

ForPredictedPositiveRateMetric

TODO: Figure out multiclass generalizations

ForThresholdMetric

TODO: Figure out multiclass generalizations

ForTnrMetric

TODO: Figure out multiclass generalizations

ForTprMetric

TODO: Figure out multiclass generalizations

FprAccuracyMetric

TODO: Figure out multiclass generalizations

FprF1ScoreMetric

TODO: Figure out multiclass generalizations

FprFdrMetric

TODO: Figure out multiclass generalizations

FprFnrMetric

TODO: Figure out multiclass generalizations

FprForMetric

TODO: Figure out multiclass generalizations

FprInformednessMetric

TODO: Figure out multiclass generalizations

FprMarkednessMetric

TODO: Figure out multiclass generalizations

FprMccMetric

TODO: Figure out multiclass generalizations

FprMetric

TODO: Figure out multiclass generalizations

FprNpvMetric

TODO: Figure out multiclass generalizations

FprPpvMetric

TODO: Figure out multiclass generalizations

FprPredictedNegativeRateMetric

TODO: Figure out multiclass generalizations

FprPredictedPositiveRateMetric

TODO: Figure out multiclass generalizations

FprThresholdMetric

TODO: Figure out multiclass generalizations

FprTnrMetric

TODO: Figure out multiclass generalizations

FprTprMetric

TODO: Figure out multiclass generalizations

NpvAccuracyMetric

TODO: Figure out multiclass generalizations

NpvF1ScoreMetric

TODO: Figure out multiclass generalizations

NpvFdrMetric

TODO: Figure out multiclass generalizations

NpvFnrMetric

TODO: Figure out multiclass generalizations

NpvForMetric

TODO: Figure out multiclass generalizations

NpvFprMetric

TODO: Figure out multiclass generalizations

NpvInformednessMetric

TODO: Figure out multiclass generalizations

NpvMarkednessMetric

TODO: Figure out multiclass generalizations

NpvMccMetric

TODO: Figure out multiclass generalizations

NpvPpvMetric

TODO: Figure out multiclass generalizations

NpvPredictedNegativeRateMetric

TODO: Figure out multiclass generalizations

NpvPredictedPositiveRateMetric

TODO: Figure out multiclass generalizations

NpvThresholdMetric

TODO: Figure out multiclass generalizations

NpvTnrMetric

TODO: Figure out multiclass generalizations

NpvTprMetric

TODO: Figure out multiclass generalizations

PpvAccuracyMetric

TODO: Figure out multiclass generalizations

PpvF1ScoreMetric

TODO: Figure out multiclass generalizations

PpvFdrMetric

TODO: Figure out multiclass generalizations

PpvFnrMetric

TODO: Figure out multiclass generalizations

PpvForMetric

TODO: Figure out multiclass generalizations

PpvFprMetric

TODO: Figure out multiclass generalizations

PpvInformednessMetric

TODO: Figure out multiclass generalizations

PpvMarkednessMetric

TODO: Figure out multiclass generalizations

PpvMccMetric

TODO: Figure out multiclass generalizations

PpvNpvMetric

TODO: Figure out multiclass generalizations

PpvPredictedNegativeRateMetric

TODO: Figure out multiclass generalizations

PpvPredictedPositiveRateMetric

TODO: Figure out multiclass generalizations

PpvThresholdMetric

TODO: Figure out multiclass generalizations

PpvTnrMetric

TODO: Figure out multiclass generalizations

PpvTprMetric

TODO: Figure out multiclass generalizations

PredictedNegativeRateAccuracyMetric

TODO: Figure out multiclass generalizations

PredictedNegativeRateF1ScoreMetric

TODO: Figure out multiclass generalizations

PredictedNegativeRateFdrMetric

TODO: Figure out multiclass generalizations

PredictedNegativeRateFnrMetric

TODO: Figure out multiclass generalizations

PredictedNegativeRateForMetric

TODO: Figure out multiclass generalizations

PredictedNegativeRateFprMetric

TODO: Figure out multiclass generalizations

PredictedNegativeRateInformednessMetric

TODO: Figure out multiclass generalizations

PredictedNegativeRateMarkednessMetric

TODO: Figure out multiclass generalizations

PredictedNegativeRateMccMetric

TODO: Figure out multiclass generalizations

PredictedNegativeRateNpvMetric

TODO: Figure out multiclass generalizations

PredictedNegativeRatePpvMetric

TODO: Figure out multiclass generalizations

PredictedNegativeRatePredictedPositiveRateMetric

TODO: Figure out multiclass generalizations

PredictedNegativeRateThresholdMetric

TODO: Figure out multiclass generalizations

PredictedNegativeRateTnrMetric

TODO: Figure out multiclass generalizations

PredictedNegativeRateTprMetric

TODO: Figure out multiclass generalizations

PredictedPositiveRateAccuracyMetric

TODO: Figure out multiclass generalizations

PredictedPositiveRateF1ScoreMetric

TODO: Figure out multiclass generalizations

PredictedPositiveRateFdrMetric

TODO: Figure out multiclass generalizations

PredictedPositiveRateFnrMetric

TODO: Figure out multiclass generalizations

PredictedPositiveRateForMetric

TODO: Figure out multiclass generalizations

PredictedPositiveRateFprMetric

TODO: Figure out multiclass generalizations

PredictedPositiveRateInformednessMetric

TODO: Figure out multiclass generalizations

PredictedPositiveRateMarkednessMetric

TODO: Figure out multiclass generalizations

PredictedPositiveRateMccMetric

TODO: Figure out multiclass generalizations

PredictedPositiveRateNpvMetric

TODO: Figure out multiclass generalizations

PredictedPositiveRatePpvMetric

TODO: Figure out multiclass generalizations

PredictedPositiveRatePredictedNegativeRateMetric

TODO: Figure out multiclass generalizations

PredictedPositiveRateThresholdMetric

TODO: Figure out multiclass generalizations

PredictedPositiveRateTnrMetric

TODO: Figure out multiclass generalizations

PredictedPositiveRateTprMetric

TODO: Figure out multiclass generalizations

RocAucMetric

TODO: Figure out multiclass generalizations

ThresholdAccuracyMetric

TODO: Figure out multiclass generalizations

ThresholdF1ScoreMetric

TODO: Figure out multiclass generalizations

ThresholdFdrMetric

TODO: Figure out multiclass generalizations

ThresholdFnrMetric

TODO: Figure out multiclass generalizations

ThresholdForMetric

TODO: Figure out multiclass generalizations

ThresholdFprMetric

TODO: Figure out multiclass generalizations

ThresholdInformednessMetric

TODO: Figure out multiclass generalizations

ThresholdMarkednessMetric

TODO: Figure out multiclass generalizations

ThresholdMccMetric

TODO: Figure out multiclass generalizations

ThresholdNpvMetric

TODO: Figure out multiclass generalizations

ThresholdPpvMetric

TODO: Figure out multiclass generalizations

ThresholdPredictedNegativeRateMetric

TODO: Figure out multiclass generalizations

ThresholdPredictedPositiveRateMetric

TODO: Figure out multiclass generalizations

ThresholdTnrMetric

TODO: Figure out multiclass generalizations

ThresholdTprMetric

TODO: Figure out multiclass generalizations

TnrAccuracyMetric

TODO: Figure out multiclass generalizations

TnrF1ScoreMetric

TODO: Figure out multiclass generalizations

TnrFdrMetric

TODO: Figure out multiclass generalizations

TnrFnrMetric

TODO: Figure out multiclass generalizations

TnrForMetric

TODO: Figure out multiclass generalizations

TnrFprMetric

TODO: Figure out multiclass generalizations

TnrInformednessMetric

TODO: Figure out multiclass generalizations

TnrMarkednessMetric

TODO: Figure out multiclass generalizations

TnrMccMetric

TODO: Figure out multiclass generalizations

TnrNpvMetric

TODO: Figure out multiclass generalizations

TnrPpvMetric

TODO: Figure out multiclass generalizations

TnrPredictedNegativeRateMetric

TODO: Figure out multiclass generalizations

TnrPredictedPositiveRateMetric

TODO: Figure out multiclass generalizations

TnrThresholdMetric

TODO: Figure out multiclass generalizations

TnrTprMetric

TODO: Figure out multiclass generalizations

TprAccuracyMetric

TODO: Figure out multiclass generalizations

TprF1ScoreMetric

TODO: Figure out multiclass generalizations

TprFdrMetric

TODO: Figure out multiclass generalizations

TprFnrMetric

TODO: Figure out multiclass generalizations

TprForMetric

TODO: Figure out multiclass generalizations

TprFprMetric

TODO: Figure out multiclass generalizations

TprInformednessMetric

TODO: Figure out multiclass generalizations

TprMarkednessMetric

TODO: Figure out multiclass generalizations

TprMccMetric

TODO: Figure out multiclass generalizations

TprMetric

TODO: Figure out multiclass generalizations

TprNpvMetric

TODO: Figure out multiclass generalizations

TprPpvMetric

TODO: Figure out multiclass generalizations

TprPredictedNegativeRateMetric

TODO: Figure out multiclass generalizations

TprPredictedPositiveRateMetric

TODO: Figure out multiclass generalizations

TprThresholdMetric

TODO: Figure out multiclass generalizations

TprTnrMetric

TODO: Figure out multiclass generalizations

Attributes

LOGGER

__author__

simpleml.metrics.classification.LOGGER[source]
simpleml.metrics.classification.__author__ = Elisha Yadgaran[source]
class simpleml.metrics.classification.AccuracyMetric(**kwargs)[source]

Bases: AggregateBinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

static _score(predictions, labels)[source]

Each aggregate needs to define a separate private method to actually calculate the aggregate

Separated from the public score method to enable easier testing and extension (values can be passed from non internal properties)

class simpleml.metrics.classification.AggregateBinaryClassificationMetric(dataset_split=None, **kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split (Optional[str]) – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

abstract static _score(predictions, labels)[source]

Each aggregate needs to define a separate private method to actually calculate the aggregate

Separated from the public score method to enable easier testing and extension (values can be passed from non internal properties)

score(self)[source]

Main scoring method. Uses internal values and passes to class level aggregation method

class simpleml.metrics.classification.BinaryClassificationMetric(dataset_split=None, **kwargs)[source]

Bases: ClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split (Optional[str]) – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

static _create_confusion_matrix(thresholds, probabilities, labels)[source]

Independent computation method (easier testing)

property accuracy(self)[source]

Convenience property for the Accuracy Rate (TP+TN/TP+FP+TN+FN)

property confusion_matrix(self)[source]

Property method to return (or generate) dataframe of confusion matrix at each threshold

create_confusion_matrix(self)[source]

Iterate through each threshold and compute confusion matrix

static dedupe_curve(keys, values, maximize=True, round_places=3)[source]

Method to deduplicate multiple values for the same key on a curve (ex multiple thresholds with the same fpr and different tpr for roc)

Parameters

maximize – Boolean, whether to choose the maximum value for each unique key or the minimum

property f1(self)[source]

Convenience property for the F1 Score (2*TP/2*TP+FP+FN)

property false_discovery_rate(self)[source]

Convenience property for the False Discovery Rate (FP/FP+TP)

property false_negative_rate(self)[source]

Convenience property for the False Negative Rate (FN/TP+FN)

property false_omission_rate(self)[source]

Convenience property for the False Omission Rate (FN/TN+FN)

property false_positive_rate(self)[source]

Convenience property for the False Positive Rate (FP/FP+TN)

property informedness(self)[source]

Convenience property for the Informedness (TPR+TNR-1)

property labels(self)[source]
property markedness(self)[source]

Convenience property for the Markedness (PPV+NPV-1)

property matthews_correlation_coefficient(self)[source]

Convenience property for the Matthews Correlation Coefficient (TP*TN-FP*FN/((FP+TP)*(TP+FN)*(TN+FP)*(TN+FN))^0.5)

property negative_predictive_value(self)[source]

Convenience property for the Negative Predictive Value (TN/TN+FN)

property positive_predictive_value(self)[source]

Convenience property for the Positive Predictive Value (TP/FP+TP)

property predicted_negative_rate(self)[source]

Convenience property for the Predicted Negative Rate (TN+FN/TP+FP+TN+FN)

property predicted_positive_rate(self)[source]

Convenience property for the Predicted Positive Rate (TP+FP/TP+FP+TN+FN)

property predictions(self)[source]
property probabilities(self)[source]
property thresholds(self)[source]

Convenience property for the probability thresholds

property true_negative_rate(self)[source]

Convenience property for the True Negative Rate (TN/FP+TN)

property true_positive_rate(self)[source]

Convenience property for the True Positive Rate (TP/TP+FN)

static validate_labels(labels)[source]
class simpleml.metrics.classification.ClassificationMetric(dataset_split=None, **kwargs)[source]

Bases: simpleml.metrics.base_metric.Metric

TODO: Figure out multiclass generalizations

Parameters

dataset_split (Optional[str]) – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

_get_split(self, column)[source]
Parameters

column (str) –

Return type

Any

property labels(self)[source]
Return type

Any

property predictions(self)[source]
Return type

Any

property probabilities(self)[source]
Return type

Any

static validate_predictions(predictions)[source]
Parameters

predictions (Any) –

Return type

None

class simpleml.metrics.classification.F1ScoreMetric(**kwargs)[source]

Bases: AggregateBinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

static _score(predictions, labels)[source]

Each aggregate needs to define a separate private method to actually calculate the aggregate

Separated from the public score method to enable easier testing and extension (values can be passed from non internal properties)

class simpleml.metrics.classification.FdrAccuracyMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FdrF1ScoreMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FdrFnrMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FdrForMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FdrFprMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FdrInformednessMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FdrMarkednessMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FdrMccMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FdrNpvMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FdrPpvMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FdrPredictedNegativeRateMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FdrPredictedPositiveRateMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FdrThresholdMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FdrTnrMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FdrTprMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FnrAccuracyMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FnrF1ScoreMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FnrFdrMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FnrForMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FnrFprMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FnrInformednessMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FnrMarkednessMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FnrMccMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FnrNpvMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FnrPpvMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FnrPredictedNegativeRateMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FnrPredictedPositiveRateMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FnrThresholdMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FnrTnrMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FnrTprMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.ForAccuracyMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.ForF1ScoreMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.ForFdrMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.ForFnrMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.ForFprMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.ForInformednessMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.ForMarkednessMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.ForMccMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.ForNpvMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.ForPpvMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.ForPredictedNegativeRateMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.ForPredictedPositiveRateMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.ForThresholdMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.ForTnrMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.ForTprMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FprAccuracyMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FprF1ScoreMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FprFdrMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FprFnrMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FprForMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FprInformednessMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FprMarkednessMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FprMccMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FprMetric(**kwargs)[source]

Bases: AggregateBinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

static _score(predictions, labels)[source]

Each aggregate needs to define a separate private method to actually calculate the aggregate

Separated from the public score method to enable easier testing and extension (values can be passed from non internal properties)

class simpleml.metrics.classification.FprNpvMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FprPpvMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FprPredictedNegativeRateMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FprPredictedPositiveRateMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FprThresholdMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FprTnrMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.FprTprMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.NpvAccuracyMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.NpvF1ScoreMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.NpvFdrMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.NpvFnrMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.NpvForMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.NpvFprMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.NpvInformednessMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.NpvMarkednessMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.NpvMccMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.NpvPpvMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.NpvPredictedNegativeRateMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.NpvPredictedPositiveRateMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.NpvThresholdMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.NpvTnrMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.NpvTprMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PpvAccuracyMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PpvF1ScoreMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PpvFdrMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PpvFnrMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PpvForMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PpvFprMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PpvInformednessMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PpvMarkednessMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PpvMccMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PpvNpvMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PpvPredictedNegativeRateMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PpvPredictedPositiveRateMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PpvThresholdMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PpvTnrMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PpvTprMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PredictedNegativeRateAccuracyMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PredictedNegativeRateF1ScoreMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PredictedNegativeRateFdrMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PredictedNegativeRateFnrMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PredictedNegativeRateForMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PredictedNegativeRateFprMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PredictedNegativeRateInformednessMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PredictedNegativeRateMarkednessMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PredictedNegativeRateMccMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PredictedNegativeRateNpvMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PredictedNegativeRatePpvMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PredictedNegativeRatePredictedPositiveRateMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PredictedNegativeRateThresholdMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PredictedNegativeRateTnrMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PredictedNegativeRateTprMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PredictedPositiveRateAccuracyMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PredictedPositiveRateF1ScoreMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PredictedPositiveRateFdrMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PredictedPositiveRateFnrMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PredictedPositiveRateForMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PredictedPositiveRateFprMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PredictedPositiveRateInformednessMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PredictedPositiveRateMarkednessMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PredictedPositiveRateMccMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PredictedPositiveRateNpvMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PredictedPositiveRatePpvMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PredictedPositiveRatePredictedNegativeRateMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PredictedPositiveRateThresholdMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PredictedPositiveRateTnrMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.PredictedPositiveRateTprMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.RocAucMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

static _score(probabilities, labels)[source]
score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.ThresholdAccuracyMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.ThresholdF1ScoreMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.ThresholdFdrMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.ThresholdFnrMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.ThresholdForMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.ThresholdFprMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.ThresholdInformednessMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.ThresholdMarkednessMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.ThresholdMccMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.ThresholdNpvMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.ThresholdPpvMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.ThresholdPredictedNegativeRateMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.ThresholdPredictedPositiveRateMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.ThresholdTnrMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.ThresholdTprMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.TnrAccuracyMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.TnrF1ScoreMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.TnrFdrMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.TnrFnrMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.TnrForMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.TnrFprMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.TnrInformednessMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.TnrMarkednessMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.TnrMccMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.TnrNpvMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.TnrPpvMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.TnrPredictedNegativeRateMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.TnrPredictedPositiveRateMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.TnrThresholdMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.TnrTprMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.TprAccuracyMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.TprF1ScoreMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.TprFdrMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.TprFnrMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.TprForMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.TprFprMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.TprInformednessMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.TprMarkednessMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.TprMccMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.TprMetric(**kwargs)[source]

Bases: AggregateBinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

static _score(predictions, labels)[source]

Each aggregate needs to define a separate private method to actually calculate the aggregate

Separated from the public score method to enable easier testing and extension (values can be passed from non internal properties)

class simpleml.metrics.classification.TprNpvMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.TprPpvMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.TprPredictedNegativeRateMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.TprPredictedPositiveRateMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.TprThresholdMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values

class simpleml.metrics.classification.TprTnrMetric(**kwargs)[source]

Bases: BinaryClassificationMetric

TODO: Figure out multiclass generalizations

Parameters

dataset_split – string denoting which dataset split to use can be one of: TRAIN, VALIDATION, Other. Other gets no prefix Default is train split to stay consistent with no split mapping to Train in Pipeline

score(self)[source]

Abstract method for each metric to define

Should set self.values