2020-06-17 11:34:39 +00:00
|
|
|
from pytorch_lightning.metrics.classification import (
|
2020-06-16 11:42:56 +00:00
|
|
|
Accuracy,
|
|
|
|
AveragePrecision,
|
|
|
|
ConfusionMatrix,
|
|
|
|
F1,
|
|
|
|
FBeta,
|
|
|
|
Recall,
|
|
|
|
ROC,
|
2020-06-17 11:34:39 +00:00
|
|
|
AUROC,
|
|
|
|
DiceCoefficient,
|
2020-09-01 18:59:33 +00:00
|
|
|
MulticlassPrecisionRecallCurve,
|
2020-06-17 11:34:39 +00:00
|
|
|
MulticlassROC,
|
|
|
|
Precision,
|
2020-09-01 18:59:33 +00:00
|
|
|
PrecisionRecallCurve,
|
2020-06-18 13:06:31 +00:00
|
|
|
IoU,
|
2020-06-17 11:34:39 +00:00
|
|
|
)
|
2020-08-07 22:33:51 +00:00
|
|
|
from pytorch_lightning.metrics.converters import numpy_metric, tensor_metric
|
|
|
|
from pytorch_lightning.metrics.metric import Metric, TensorMetric, NumpyMetric
|
|
|
|
from pytorch_lightning.metrics.nlp import BLEUScore
|
2020-09-11 10:11:50 +00:00
|
|
|
from pytorch_lightning.metrics.self_supervised import EmbeddingSimilarity
|
2020-08-07 22:33:51 +00:00
|
|
|
from pytorch_lightning.metrics.regression import (
|
|
|
|
MAE,
|
|
|
|
MSE,
|
|
|
|
PSNR,
|
|
|
|
RMSE,
|
|
|
|
RMSLE,
|
|
|
|
SSIM
|
|
|
|
)
|
2020-06-17 11:34:39 +00:00
|
|
|
from pytorch_lightning.metrics.sklearns import (
|
|
|
|
AUC,
|
|
|
|
SklearnMetric,
|
|
|
|
)
|
|
|
|
|
2020-06-17 22:44:29 +00:00
|
|
|
__classification_metrics = [
|
2020-07-22 13:58:24 +00:00
|
|
|
"AUC",
|
|
|
|
"AUROC",
|
|
|
|
"Accuracy",
|
|
|
|
"AveragePrecision",
|
|
|
|
"ConfusionMatrix",
|
|
|
|
"DiceCoefficient",
|
|
|
|
"F1",
|
|
|
|
"FBeta",
|
2020-09-01 18:59:33 +00:00
|
|
|
"MulticlassPrecisionRecallCurve",
|
2020-07-22 13:58:24 +00:00
|
|
|
"MulticlassROC",
|
|
|
|
"Precision",
|
|
|
|
"PrecisionRecallCurve",
|
|
|
|
"ROC",
|
|
|
|
"Recall",
|
|
|
|
"IoU",
|
2020-06-17 11:34:39 +00:00
|
|
|
]
|
2020-06-17 22:44:29 +00:00
|
|
|
__regression_metrics = [
|
2020-07-22 13:58:24 +00:00
|
|
|
"MAE",
|
|
|
|
"MSE",
|
|
|
|
"PSNR",
|
|
|
|
"RMSE",
|
|
|
|
"RMSLE",
|
2020-07-23 16:13:52 +00:00
|
|
|
"SSIM"
|
2020-06-17 22:44:29 +00:00
|
|
|
]
|
2020-07-22 13:58:24 +00:00
|
|
|
__sequence_metrics = ["BLEUScore"]
|
2020-09-11 10:11:50 +00:00
|
|
|
__selfsuper_metrics = ["EmbeddingSimilarity"]
|
|
|
|
|
|
|
|
__all__ = __regression_metrics \
|
|
|
|
+ __classification_metrics \
|
|
|
|
+ __selfsuper_metrics \
|
|
|
|
+ __sequence_metrics \
|
|
|
|
+ ["SklearnMetric"]
|