Skip to content

Commit 0c0b24c

Browse files
Prune deprecated metrics (#8586)
* drop metrics * drop tests * fix imports Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 47c47fa commit 0c0b24c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+12
-2821
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
5858

5959
### Removed
6060

61-
-
61+
- Removed deprecated `metrics` ([#8586](https://github.com/PyTorchLightning/pytorch-lightning/pull/8586/))
6262

6363

6464
- Removed the `outputs` argument in both the `LightningModule.on_train_epoch_end` and `Callback.on_train_epoch_end` hooks ([#8587](https://github.com/PyTorchLightning/pytorch-lightning/pull/8587))
@@ -93,7 +93,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
9393

9494
### Added
9595

96-
- Added `extract_batch_size` utility and corresponding tests to extract batch dimension from multiple batch types. ([#8357](https://github.com/PyTorchLightning/pytorch-lightning/pull/8357/))
96+
- Added `extract_batch_size` utility and corresponding tests to extract batch dimension from multiple batch types ([#8357](https://github.com/PyTorchLightning/pytorch-lightning/pull/8357/))
9797
- Added support for named parameter groups in `LearningRateMonitor` ([#7987](https://github.com/PyTorchLightning/pytorch-lightning/pull/7987))
9898
- Added `dataclass` support for `pytorch_lightning.utilities.apply_to_collection` ([#7935](https://github.com/PyTorchLightning/pytorch-lightning/pull/7935))
9999
- Added support to `LightningModule.to_torchscript` for saving to custom filesystems with `fsspec` ([#7617](https://github.com/PyTorchLightning/pytorch-lightning/pull/7617))

pytorch_lightning/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,12 @@
1717
_PACKAGE_ROOT = os.path.dirname(__file__)
1818
_PROJECT_ROOT = os.path.dirname(_PACKAGE_ROOT)
1919

20-
from pytorch_lightning import metrics # noqa: E402
2120
from pytorch_lightning.callbacks import Callback # noqa: E402
2221
from pytorch_lightning.core import LightningDataModule, LightningModule # noqa: E402
2322
from pytorch_lightning.trainer import Trainer # noqa: E402
2423
from pytorch_lightning.utilities.seed import seed_everything # noqa: E402
2524

26-
__all__ = ["Trainer", "LightningDataModule", "LightningModule", "Callback", "seed_everything", "metrics"]
25+
__all__ = ["Trainer", "LightningDataModule", "LightningModule", "Callback", "seed_everything"]
2726

2827
# for compatibility with namespace packages
2928
__import__("pkg_resources").declare_namespace(__name__)

pytorch_lightning/metrics/__init__.py

Lines changed: 0 additions & 40 deletions
This file was deleted.

pytorch_lightning/metrics/classification/__init__.py

Lines changed: 0 additions & 25 deletions
This file was deleted.

pytorch_lightning/metrics/classification/accuracy.py

Lines changed: 0 additions & 39 deletions
This file was deleted.

pytorch_lightning/metrics/classification/auc.py

Lines changed: 0 additions & 37 deletions
This file was deleted.

pytorch_lightning/metrics/classification/auroc.py

Lines changed: 0 additions & 40 deletions
This file was deleted.

pytorch_lightning/metrics/classification/average_precision.py

Lines changed: 0 additions & 37 deletions
This file was deleted.

pytorch_lightning/metrics/classification/confusion_matrix.py

Lines changed: 0 additions & 38 deletions
This file was deleted.

pytorch_lightning/metrics/classification/f_beta.py

Lines changed: 0 additions & 62 deletions
This file was deleted.

0 commit comments

Comments
 (0)