2020-10-13 11:18:07 +00:00
|
|
|
# Copyright The PyTorch Lightning team.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
2021-03-15 14:39:38 +00:00
|
|
|
|
2020-12-21 09:15:04 +00:00
|
|
|
from pytorch_lightning.metrics.classification import ( # noqa: F401
|
2020-10-10 16:31:00 +00:00
|
|
|
Accuracy,
|
2021-01-27 13:16:54 +00:00
|
|
|
AUC,
|
|
|
|
AUROC,
|
2021-01-18 12:10:53 +00:00
|
|
|
AveragePrecision,
|
|
|
|
ConfusionMatrix,
|
|
|
|
F1,
|
|
|
|
FBeta,
|
2020-12-21 15:42:51 +00:00
|
|
|
HammingDistance,
|
2021-01-08 13:36:08 +00:00
|
|
|
IoU,
|
2020-10-10 16:31:00 +00:00
|
|
|
Precision,
|
2020-12-04 21:42:23 +00:00
|
|
|
PrecisionRecallCurve,
|
2021-01-18 12:10:53 +00:00
|
|
|
Recall,
|
2020-12-04 21:42:23 +00:00
|
|
|
ROC,
|
2021-01-18 12:10:53 +00:00
|
|
|
StatScores,
|
2020-10-10 16:31:00 +00:00
|
|
|
)
|
2021-01-18 12:10:53 +00:00
|
|
|
from pytorch_lightning.metrics.metric import Metric, MetricCollection # noqa: F401
|
2020-12-21 09:15:04 +00:00
|
|
|
from pytorch_lightning.metrics.regression import ( # noqa: F401
|
2021-01-18 12:10:53 +00:00
|
|
|
ExplainedVariance,
|
2020-10-09 02:58:33 +00:00
|
|
|
MeanAbsoluteError,
|
2021-01-18 12:10:53 +00:00
|
|
|
MeanSquaredError,
|
2020-10-09 02:58:33 +00:00
|
|
|
MeanSquaredLogError,
|
2020-10-21 22:05:59 +00:00
|
|
|
PSNR,
|
2021-01-18 12:10:53 +00:00
|
|
|
R2Score,
|
2020-10-21 22:05:59 +00:00
|
|
|
SSIM,
|
2020-10-09 02:58:33 +00:00
|
|
|
)
|
2021-03-25 14:26:38 +00:00
|
|
|
from pytorch_lightning.utilities import rank_zero_deprecation
|
2021-03-15 14:39:38 +00:00
|
|
|
|
2021-03-25 14:26:38 +00:00
|
|
|
rank_zero_deprecation(
|
2021-03-15 14:39:38 +00:00
|
|
|
"`pytorch_lightning.metrics.*` module has been renamed to `torchmetrics.*` and split off to its own package"
|
2021-03-25 14:26:38 +00:00
|
|
|
" (https://github.com/PyTorchLightning/metrics) since v1.3 and will be removed in v1.5"
|
2021-03-15 14:39:38 +00:00
|
|
|
)
|