Skip to content

Commit

Permalink
less IDE complain about unused args (#6786)
Browse files Browse the repository at this point in the history
* less IDE complain about unused args

* ...
  • Loading branch information
Borda committed Apr 1, 2021
1 parent 3e3175d commit 0b84384
Show file tree
Hide file tree
Showing 20 changed files with 24 additions and 1 deletion.
1 change: 1 addition & 0 deletions pytorch_lightning/metrics/classification/accuracy.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ def __init__(
.. deprecated::
Use :class:`~torchmetrics.Accuracy`. Will be removed in v1.5.0.
"""
_ = threshold, top_k, subset_accuracy, compute_on_step, dist_sync_on_step, process_group, dist_sync_fn
1 change: 1 addition & 0 deletions pytorch_lightning/metrics/classification/auc.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ def __init__(
.. deprecated::
Use :class:`~torchmetrics.AUC`. Will be removed in v1.5.0.
"""
_ = reorder, compute_on_step, dist_sync_on_step, process_group, dist_sync_fn
1 change: 1 addition & 0 deletions pytorch_lightning/metrics/classification/auroc.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ def __init__(
.. deprecated::
Use :class:`~torchmetrics.AUROC`. Will be removed in v1.5.0.
"""
_ = num_classes, pos_label, average, max_fpr, compute_on_step, dist_sync_on_step, process_group, dist_sync_fn
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ def __init__(
.. deprecated::
Use :class:`~torchmetrics.AveragePrecision`. Will be removed in v1.5.0.
"""
_ = num_classes, pos_label, compute_on_step, dist_sync_on_step, process_group
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ def __init__(
.. deprecated::
Use :class:`~torchmetrics.ConfusionMatrix`. Will be removed in v1.5.0.
"""
_ = num_classes, normalize, threshold, compute_on_step, dist_sync_on_step, process_group
2 changes: 2 additions & 0 deletions pytorch_lightning/metrics/classification/f_beta.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def __init__(
.. deprecated::
Use :class:`~torchmetrics.FBeta`. Will be removed in v1.5.0.
"""
_ = num_classes, beta, threshold, average, multilabel, compute_on_step, dist_sync_on_step, process_group


class F1(_F1):
Expand All @@ -60,3 +61,4 @@ def __init__(
.. deprecated::
Use :class:`~torchmetrics.F1`. Will be removed in v1.5.0.
"""
_ = num_classes, threshold, average, multilabel, compute_on_step, dist_sync_on_step, process_group
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ def __init__(
.. deprecated::
Use :class:`~torchmetrics.HammingDistance`. Will be removed in v1.5.0.
"""
_ = threshold, compute_on_step, dist_sync_on_step, process_group, dist_sync_fn
2 changes: 2 additions & 0 deletions pytorch_lightning/metrics/classification/iou.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,5 @@ def __init__(
.. deprecated::
Use :class:`~torchmetrics.IoU`. Will be removed in v1.5.0.
"""
_ = num_classes, ignore_index, absent_score, threshold, reduction, \
compute_on_step, dist_sync_on_step, process_group
2 changes: 2 additions & 0 deletions pytorch_lightning/metrics/classification/precision_recall.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ def __init__(
.. deprecated::
Use :class:`~torchmetrics.Precision`. Will be removed in v1.5.0.
"""
_ = num_classes, threshold, average, multilabel, mdmc_average, ignore_index, top_k, is_multiclass, \
compute_on_step, dist_sync_on_step, process_group, dist_sync_fn


class Recall(_Recall):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ def __init__(
.. deprecated::
Use :class:`~torchmetrics.PrecisionRecallCurve`. Will be removed in v1.5.0.
"""
_ = num_classes, pos_label, compute_on_step, dist_sync_on_step, process_group
1 change: 1 addition & 0 deletions pytorch_lightning/metrics/classification/roc.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ def __init__(
.. deprecated::
Use :class:`~torchmetrics.ROC`. Will be removed in v1.5.0.
"""
_ = num_classes, pos_label, compute_on_step, dist_sync_on_step, process_group
2 changes: 2 additions & 0 deletions pytorch_lightning/metrics/classification/stat_scores.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@ def __init__(
.. deprecated::
Use :class:`~torchmetrics.StatScores`. Will be removed in v1.5.0.
"""
_ = threshold, top_k, reduce, num_classes, ignore_index, mdmc_reduce, is_multiclass, compute_on_step, \
dist_sync_on_step, process_group, dist_sync_fn
1 change: 1 addition & 0 deletions pytorch_lightning/metrics/regression/explained_variance.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ def __init__(
.. deprecated::
Use :class:`~torchmetrics.ExplainedVariance`. Will be removed in v1.5.0.
"""
_ = multioutput, compute_on_step, dist_sync_on_step, process_group, dist_sync_fn
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ def __init__(
.. deprecated::
Use :class:`~torchmetrics.MeanAbsoluteError`. Will be removed in v1.5.0.
"""
_ = compute_on_step, dist_sync_on_step, process_group, dist_sync_fn
1 change: 1 addition & 0 deletions pytorch_lightning/metrics/regression/mean_squared_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ def __init__(
.. deprecated::
Use :class:`~torchmetrics.MeanSquaredError`. Will be removed in v1.5.0.
"""
_ = compute_on_step, dist_sync_on_step, process_group, dist_sync_fn
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ def __init__(
.. deprecated::
Use :class:`~torchmetrics.MeanSquaredLogError`. Will be removed in v1.5.0.
"""
_ = compute_on_step, dist_sync_on_step, process_group, dist_sync_fn
1 change: 1 addition & 0 deletions pytorch_lightning/metrics/regression/psnr.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ def __init__(
.. deprecated::
Use :class:`~torchmetrics.PSNR`. Will be removed in v1.5.0.
"""
_ = data_range, base, reduction, dim, compute_on_step, dist_sync_on_step, process_group
1 change: 1 addition & 0 deletions pytorch_lightning/metrics/regression/r2score.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ def __init__(
.. deprecated::
Use :class:`~torchmetrics.R2Score`. Will be removed in v1.5.0.
"""
_ = num_outputs, adjusted, multioutput, compute_on_step, dist_sync_on_step, process_group, dist_sync_fn
1 change: 1 addition & 0 deletions pytorch_lightning/metrics/regression/ssim.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ def __init__(
.. deprecated::
Use :class:`~torchmetrics.SSIM`. Will be removed in v1.5.0.
"""
_ = kernel_size, sigma, reduction, data_range, k1, k2, compute_on_step, dist_sync_on_step, process_group
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ tqdm>=4.41.0
fsspec[http]>=0.8.1
tensorboard>=2.2.0
torchmetrics>=0.2.0
pyDeprecate==0.1.1
pyDeprecate==0.2.0

0 comments on commit 0b84384

Please sign in to comment.