You will be redirected to TorchMetrics docs.
8 | 9 | 10 | -------------------------------------------------------------------------------- /docs/rtfd-build.sh: -------------------------------------------------------------------------------- 1 | # building for PRs and skip stable and latest states 2 | 3 | export SPHINX_ENABLE_GALLERY=0 4 | 5 | if ! [ $READTHEDOCS_VERSION == "latest" -o $READTHEDOCS_VERSION == "stable" ]; 6 | then 7 | cd ./docs ; 8 | export SPHINX_FETCH_ASSETS=0 ; 9 | make html --jobs $(nproc) ; 10 | ls -lh build 11 | else 12 | echo "Void build... :-]" ; 13 | mkdir -p ./docs/build/html 14 | cp ./docs/redirect.html ./docs/build/html/index.html 15 | fi 16 | -------------------------------------------------------------------------------- /docs/source/_static/css/custom.css: -------------------------------------------------------------------------------- 1 | .sphx-glr-thumbcontainer { 2 | min-height: 90% !important; 3 | min-width: 90% !important; 4 | } 5 | -------------------------------------------------------------------------------- /docs/source/_static/images/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lightning-AI/torchmetrics/5b8b757c71d1b0f0f056c0df63e3fd772974e8b0/docs/source/_static/images/icon.png -------------------------------------------------------------------------------- /docs/source/_static/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lightning-AI/torchmetrics/5b8b757c71d1b0f0f056c0df63e3fd772974e8b0/docs/source/_static/images/logo.png -------------------------------------------------------------------------------- /docs/source/_static/images/plot_example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lightning-AI/torchmetrics/5b8b757c71d1b0f0f056c0df63e3fd772974e8b0/docs/source/_static/images/plot_example.png -------------------------------------------------------------------------------- /docs/source/_templates/autosummary/module.rst: -------------------------------------------------------------------------------- 1 | {{ name | escape | underline }} 2 | 3 | .. currentmodule:: {{ fullname }} 4 | 5 | {% block functions %} 6 | {% if functions %} 7 | .. rubric:: Functions 8 | 9 | .. autosummary:: 10 | :nosignatures: 11 | {% for item in functions %} 12 | {{ item }} 13 | {%- endfor %} 14 | {% endif %} 15 | {% endblock %} 16 | 17 | {% block classes %} 18 | {% if classes %} 19 | .. rubric:: Classes 20 | 21 | .. autosummary:: 22 | :nosignatures: 23 | {% for item in classes %} 24 | {{ item }} 25 | {%- endfor %} 26 | {% endif %} 27 | {% endblock %} 28 | 29 | {% block exceptions %} 30 | {% if exceptions %} 31 | .. rubric:: Exceptions 32 | 33 | .. autosummary:: 34 | :nosignatures: 35 | {% for item in exceptions %} 36 | {{ item }} 37 | {%- endfor %} 38 | {% endif %} 39 | {% endblock %} 40 | 41 | .. automodule:: {{ fullname }} 42 | -------------------------------------------------------------------------------- /docs/source/_templates/classtemplate.rst: -------------------------------------------------------------------------------- 1 | .. role:: hidden 2 | :class: hidden-section 3 | .. currentmodule:: {{ module }} 4 | 5 | 6 | {{ name | underline}} 7 | 8 | .. autoclass:: {{ name }} 9 | :members: 10 | 11 | 12 | .. 13 | autogenerated from source/_templates/classtemplate.rst 14 | note it does not have :inherited-members: 15 | -------------------------------------------------------------------------------- /docs/source/_templates/layout.html: -------------------------------------------------------------------------------- 1 | {% extends "!layout.html" %} 2 | 3 | 4 | {% block footer %} {{ super() }} 5 | 21 | 22 | {% endblock %} 23 | -------------------------------------------------------------------------------- /docs/source/_templates/theme_variables.jinja: -------------------------------------------------------------------------------- 1 | {%- set external_urls = { 2 | 'github': 'https://github.com/Lightning-AI/torchmetrics', 3 | 'github_issues': 'https://github.com/Lightning-AI/torchmetrics/issues', 4 | 'contributing': 'https://github.com/Lightning-AI/torchmetrics/blob/master/.github/CONTRIBUTING.md', 5 | 'docs': 'https://lightning.ai/docs/torchmetrics/latest', 6 | 'twitter': 'https://twitter.com/PyTorchLightnin', 7 | 'discuss': 'https://pytorch-lightning.slack.com', 8 | 'previous_pytorch_versions': 'https://torchmetrics.rtfd.io/en/latest/', 9 | 'home': 'https://torchmetrics.rtfd.io/en/latest/', 10 | 'get_started': 'https://lightning.ai/docs/torchmetrics/latest/pages/quickstart.html', 11 | 'blog': 'https://www.pytorchlightning.ai/blog', 12 | 'support': 'https://github.com/Lightning-AI/torchmetrics/issues', 13 | 'community': 'https://pytorch-lightning.slack.com', 14 | 'forums': 'https://pytorch-lightning.slack.com', 15 | } 16 | -%} 17 | -------------------------------------------------------------------------------- /docs/source/aggregation/cat.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Concatenation 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/graph_classification.svg 4 | :tags: Aggregation 5 | 6 | .. include:: ../links.rst 7 | 8 | ############# 9 | Concatenation 10 | ############# 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.aggregation.CatMetric 16 | :exclude-members: update, compute 17 | -------------------------------------------------------------------------------- /docs/source/aggregation/max.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Maximum 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/graph_classification.svg 4 | :tags: Aggregation 5 | 6 | .. include:: ../links.rst 7 | 8 | ####### 9 | Maximum 10 | ####### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.aggregation.MaxMetric 16 | :exclude-members: update, compute 17 | -------------------------------------------------------------------------------- /docs/source/aggregation/mean.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Mean 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/graph_classification.svg 4 | :tags: Aggregation 5 | 6 | .. include:: ../links.rst 7 | 8 | #### 9 | Mean 10 | #### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.aggregation.MeanMetric 16 | :exclude-members: update, compute 17 | -------------------------------------------------------------------------------- /docs/source/aggregation/min.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Minimum 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/graph_classification.svg 4 | :tags: Aggregation 5 | 6 | .. include:: ../links.rst 7 | 8 | ####### 9 | Minimum 10 | ####### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.aggregation.MinMetric 16 | :exclude-members: update, compute 17 | -------------------------------------------------------------------------------- /docs/source/aggregation/running_mean.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Mean 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/graph_classification.svg 4 | :tags: Aggregation 5 | 6 | .. include:: ../links.rst 7 | 8 | ############ 9 | Running Mean 10 | ############ 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.aggregation.RunningMean 16 | :exclude-members: update, compute 17 | -------------------------------------------------------------------------------- /docs/source/aggregation/running_sum.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Sum 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/graph_classification.svg 4 | :tags: Aggregation 5 | 6 | .. include:: ../links.rst 7 | 8 | ########### 9 | Running Sum 10 | ########### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.aggregation.RunningSum 16 | :exclude-members: update, compute 17 | -------------------------------------------------------------------------------- /docs/source/aggregation/sum.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Sum 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/graph_classification.svg 4 | :tags: Aggregation 5 | 6 | .. include:: ../links.rst 7 | 8 | ### 9 | Sum 10 | ### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.aggregation.SumMetric 16 | :exclude-members: update, compute 17 | -------------------------------------------------------------------------------- /docs/source/all-metrics.rst: -------------------------------------------------------------------------------- 1 | .. this page is referring other pages with `customcarditem`; bypass hierarchy is patch with redirect 2 | 3 | All TorchMetrics 4 | ================ 5 | 6 | .. tutoriallist:: 7 | -------------------------------------------------------------------------------- /docs/source/audio/complex_scale_invariant_signal_noise_ratio.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Complex Scale-Invariant Signal-to-Noise Ratio (C-SI-SNR) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/audio_classification.svg 4 | :tags: Audio 5 | 6 | .. include:: ../links.rst 7 | 8 | ######################################################## 9 | Complex Scale-Invariant Signal-to-Noise Ratio (C-SI-SNR) 10 | ######################################################## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.audio.ComplexScaleInvariantSignalNoiseRatio 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.audio.complex_scale_invariant_signal_noise_ratio 22 | -------------------------------------------------------------------------------- /docs/source/audio/deep_noise_suppression_mean_opinion_score.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Deep Noise Suppression Mean Opinion Score (DNSMOS) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/audio_classification.svg 4 | :tags: Audio 5 | 6 | .. include:: ../links.rst 7 | 8 | ################################################## 9 | Deep Noise Suppression Mean Opinion Score (DNSMOS) 10 | ################################################## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.audio.dnsmos.DeepNoiseSuppressionMeanOpinionScore 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.audio.dnsmos.deep_noise_suppression_mean_opinion_score 22 | -------------------------------------------------------------------------------- /docs/source/audio/non_intrusive_speech_quality_assessment.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Non-Intrusive Speech Quality Assessment (NISQA v2.0) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/audio_classification.svg 4 | :tags: Audio 5 | 6 | .. include:: ../links.rst 7 | 8 | #################################################### 9 | Non-Intrusive Speech Quality Assessment (NISQA v2.0) 10 | #################################################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.audio.nisqa.NonIntrusiveSpeechQualityAssessment 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.audio.nisqa.non_intrusive_speech_quality_assessment 22 | -------------------------------------------------------------------------------- /docs/source/audio/perceptual_evaluation_speech_quality.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Perceptual Evaluation of Speech Quality (PESQ) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/audio_classification.svg 4 | :tags: Audio 5 | 6 | .. include:: ../links.rst 7 | 8 | ############################################## 9 | Perceptual Evaluation of Speech Quality (PESQ) 10 | ############################################## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.audio.pesq.PerceptualEvaluationSpeechQuality 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.audio.pesq.perceptual_evaluation_speech_quality 22 | -------------------------------------------------------------------------------- /docs/source/audio/permutation_invariant_training.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Permutation Invariant Training (PIT) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/audio_classification.svg 4 | :tags: Audio 5 | 6 | .. include:: ../links.rst 7 | 8 | #################################### 9 | Permutation Invariant Training (PIT) 10 | #################################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.audio.PermutationInvariantTraining 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.audio.permutation_invariant_training 22 | -------------------------------------------------------------------------------- /docs/source/audio/scale_invariant_signal_distortion_ratio.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Scale-Invariant Signal-to-Distortion Ratio (SI-SDR) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/audio_classification.svg 4 | :tags: Audio 5 | 6 | .. include:: ../links.rst 7 | 8 | ################################################### 9 | Scale-Invariant Signal-to-Distortion Ratio (SI-SDR) 10 | ################################################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.audio.ScaleInvariantSignalDistortionRatio 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.audio.scale_invariant_signal_distortion_ratio 22 | -------------------------------------------------------------------------------- /docs/source/audio/scale_invariant_signal_noise_ratio.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Scale-Invariant Signal-to-Noise Ratio (SI-SNR) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/audio_classification.svg 4 | :tags: Audio 5 | 6 | .. include:: ../links.rst 7 | 8 | ############################################## 9 | Scale-Invariant Signal-to-Noise Ratio (SI-SNR) 10 | ############################################## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.audio.ScaleInvariantSignalNoiseRatio 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.audio.scale_invariant_signal_noise_ratio 22 | -------------------------------------------------------------------------------- /docs/source/audio/short_time_objective_intelligibility.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Short-Time Objective Intelligibility (STOI) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/audio_classification.svg 4 | :tags: Audio 5 | 6 | .. include:: ../links.rst 7 | 8 | ########################################### 9 | Short-Time Objective Intelligibility (STOI) 10 | ########################################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.audio.stoi.ShortTimeObjectiveIntelligibility 16 | 17 | Functional Interface 18 | ____________________ 19 | 20 | .. autofunction:: torchmetrics.functional.audio.stoi.short_time_objective_intelligibility 21 | -------------------------------------------------------------------------------- /docs/source/audio/signal_distortion_ratio.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Signal to Distortion Ratio (SDR) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/audio_classification.svg 4 | :tags: Audio 5 | 6 | .. include:: ../links.rst 7 | 8 | ################################ 9 | Signal to Distortion Ratio (SDR) 10 | ################################ 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.audio.SignalDistortionRatio 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.audio.signal_distortion_ratio 22 | -------------------------------------------------------------------------------- /docs/source/audio/signal_noise_ratio.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Signal-to-Noise Ratio (SNR) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/audio_classification.svg 4 | :tags: Audio 5 | 6 | .. include:: ../links.rst 7 | 8 | ########################### 9 | Signal-to-Noise Ratio (SNR) 10 | ########################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.audio.SignalNoiseRatio 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.audio.signal_noise_ratio 22 | -------------------------------------------------------------------------------- /docs/source/audio/source_aggregated_signal_distortion_ratio.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Source Aggregated Signal-to-Distortion Ratio (SA-SDR) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/audio_classification.svg 4 | :tags: Audio 5 | 6 | .. include:: ../links.rst 7 | 8 | ##################################################### 9 | Source Aggregated Signal-to-Distortion Ratio (SA-SDR) 10 | ##################################################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.audio.sdr.SourceAggregatedSignalDistortionRatio 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.audio.sdr.source_aggregated_signal_distortion_ratio 22 | -------------------------------------------------------------------------------- /docs/source/audio/speech_reverberation_modulation_energy_ratio.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Speech-to-Reverberation Modulation Energy Ratio (SRMR) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/audio_classification.svg 4 | :tags: Audio 5 | 6 | .. include:: ../links.rst 7 | 8 | ###################################################### 9 | Speech-to-Reverberation Modulation Energy Ratio (SRMR) 10 | ###################################################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.audio.srmr.SpeechReverberationModulationEnergyRatio 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.audio.srmr.speech_reverberation_modulation_energy_ratio 22 | -------------------------------------------------------------------------------- /docs/source/classification/accuracy.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Accuracy 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Classification 5 | 6 | .. include:: ../links.rst 7 | 8 | ######## 9 | Accuracy 10 | ######## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.Accuracy 16 | :exclude-members: update, compute 17 | :special-members: __new__ 18 | 19 | BinaryAccuracy 20 | ^^^^^^^^^^^^^^ 21 | 22 | .. autoclass:: torchmetrics.classification.BinaryAccuracy 23 | :exclude-members: update, compute 24 | 25 | MulticlassAccuracy 26 | ^^^^^^^^^^^^^^^^^^ 27 | 28 | .. autoclass:: torchmetrics.classification.MulticlassAccuracy 29 | :exclude-members: update, compute 30 | 31 | MultilabelAccuracy 32 | ^^^^^^^^^^^^^^^^^^ 33 | 34 | .. autoclass:: torchmetrics.classification.MultilabelAccuracy 35 | :exclude-members: update, compute 36 | 37 | Functional Interface 38 | ____________________ 39 | 40 | .. autofunction:: torchmetrics.functional.classification.accuracy 41 | 42 | binary_accuracy 43 | ^^^^^^^^^^^^^^^ 44 | 45 | .. autofunction:: torchmetrics.functional.classification.binary_accuracy 46 | 47 | multiclass_accuracy 48 | ^^^^^^^^^^^^^^^^^^^ 49 | 50 | .. autofunction:: torchmetrics.functional.classification.multiclass_accuracy 51 | 52 | multilabel_accuracy 53 | ^^^^^^^^^^^^^^^^^^^ 54 | 55 | .. autofunction:: torchmetrics.functional.classification.multilabel_accuracy 56 | -------------------------------------------------------------------------------- /docs/source/classification/auroc.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Area Under the Receiver Operating Characteristic Curve (AUROC) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Classification 5 | 6 | .. include:: ../links.rst 7 | 8 | ##### 9 | AUROC 10 | ##### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.AUROC 16 | :exclude-members: update, compute 17 | :special-members: __new__ 18 | 19 | BinaryAUROC 20 | ^^^^^^^^^^^ 21 | 22 | .. autoclass:: torchmetrics.classification.BinaryAUROC 23 | :exclude-members: update, compute 24 | 25 | MulticlassAUROC 26 | ^^^^^^^^^^^^^^^ 27 | 28 | .. autoclass:: torchmetrics.classification.MulticlassAUROC 29 | :exclude-members: update, compute 30 | 31 | MultilabelAUROC 32 | ^^^^^^^^^^^^^^^ 33 | 34 | .. autoclass:: torchmetrics.classification.MultilabelAUROC 35 | :exclude-members: update, compute 36 | 37 | Functional Interface 38 | ____________________ 39 | 40 | .. autofunction:: torchmetrics.functional.auroc 41 | 42 | binary_auroc 43 | ^^^^^^^^^^^^ 44 | 45 | .. autofunction:: torchmetrics.functional.classification.binary_auroc 46 | 47 | multiclass_auroc 48 | ^^^^^^^^^^^^^^^^ 49 | 50 | .. autofunction:: torchmetrics.functional.classification.multiclass_auroc 51 | 52 | multilabel_auroc 53 | ^^^^^^^^^^^^^^^^ 54 | 55 | .. autofunction:: torchmetrics.functional.classification.multilabel_auroc 56 | -------------------------------------------------------------------------------- /docs/source/classification/average_precision.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Average Precision 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Classification 5 | 6 | .. include:: ../links.rst 7 | 8 | ################# 9 | Average Precision 10 | ################# 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.AveragePrecision 16 | :exclude-members: update, compute 17 | :special-members: __new__ 18 | 19 | BinaryAveragePrecision 20 | ^^^^^^^^^^^^^^^^^^^^^^ 21 | 22 | .. autoclass:: torchmetrics.classification.BinaryAveragePrecision 23 | :exclude-members: update, compute 24 | 25 | MulticlassAveragePrecision 26 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 27 | 28 | .. autoclass:: torchmetrics.classification.MulticlassAveragePrecision 29 | :exclude-members: update, compute 30 | 31 | MultilabelAveragePrecision 32 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 33 | 34 | .. autoclass:: torchmetrics.classification.MultilabelAveragePrecision 35 | :exclude-members: update, compute 36 | 37 | Functional Interface 38 | ____________________ 39 | 40 | .. autofunction:: torchmetrics.functional.average_precision 41 | 42 | binary_average_precision 43 | ^^^^^^^^^^^^^^^^^^^^^^^^ 44 | 45 | .. autofunction:: torchmetrics.functional.classification.binary_average_precision 46 | 47 | multiclass_average_precision 48 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 49 | 50 | .. autofunction:: torchmetrics.functional.classification.multiclass_average_precision 51 | 52 | multilabel_average_precision 53 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 54 | 55 | .. autofunction:: torchmetrics.functional.classification.multilabel_average_precision 56 | -------------------------------------------------------------------------------- /docs/source/classification/calibration_error.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Calibration Error 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Classification 5 | 6 | .. include:: ../links.rst 7 | 8 | ################# 9 | Calibration Error 10 | ################# 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.CalibrationError 16 | :noindex: 17 | :exclude-members: update, compute 18 | :special-members: __new__ 19 | 20 | BinaryCalibrationError 21 | ^^^^^^^^^^^^^^^^^^^^^^ 22 | 23 | .. autoclass:: torchmetrics.classification.BinaryCalibrationError 24 | :exclude-members: update, compute 25 | 26 | MulticlassCalibrationError 27 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 28 | 29 | .. autoclass:: torchmetrics.classification.MulticlassCalibrationError 30 | :exclude-members: update, compute 31 | 32 | Functional Interface 33 | ____________________ 34 | 35 | .. autofunction:: torchmetrics.functional.calibration_error 36 | 37 | binary_calibration_error 38 | ^^^^^^^^^^^^^^^^^^^^^^^^ 39 | 40 | .. autofunction:: torchmetrics.functional.classification.binary_calibration_error 41 | 42 | multiclass_calibration_error 43 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 44 | 45 | .. autofunction:: torchmetrics.functional.classification.multiclass_calibration_error 46 | -------------------------------------------------------------------------------- /docs/source/classification/cohen_kappa.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Cohen Kappa 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Classification 5 | 6 | .. include:: ../links.rst 7 | 8 | ########### 9 | Cohen Kappa 10 | ########### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.CohenKappa 16 | :exclude-members: update, compute 17 | :special-members: __new__ 18 | 19 | BinaryCohenKappa 20 | ^^^^^^^^^^^^^^^^ 21 | 22 | .. autoclass:: torchmetrics.classification.BinaryCohenKappa 23 | :exclude-members: update, compute 24 | 25 | MulticlassCohenKappa 26 | ^^^^^^^^^^^^^^^^^^^^ 27 | 28 | .. autoclass:: torchmetrics.classification.MulticlassCohenKappa 29 | :exclude-members: update, compute 30 | 31 | Functional Interface 32 | ____________________ 33 | 34 | cohen_kappa 35 | ^^^^^^^^^^^ 36 | 37 | .. autofunction:: torchmetrics.functional.cohen_kappa 38 | 39 | binary_cohen_kappa 40 | ^^^^^^^^^^^^^^^^^^ 41 | 42 | .. autofunction:: torchmetrics.functional.classification.binary_cohen_kappa 43 | 44 | multiclass_cohen_kappa 45 | ^^^^^^^^^^^^^^^^^^^^^^ 46 | 47 | .. autofunction:: torchmetrics.functional.classification.multiclass_cohen_kappa 48 | -------------------------------------------------------------------------------- /docs/source/classification/confusion_matrix.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Confusion Matrix 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Classification 5 | 6 | .. include:: ../links.rst 7 | 8 | ################ 9 | Confusion Matrix 10 | ################ 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.ConfusionMatrix 16 | :exclude-members: update, compute 17 | :special-members: __new__ 18 | 19 | BinaryConfusionMatrix 20 | ^^^^^^^^^^^^^^^^^^^^^ 21 | 22 | .. autoclass:: torchmetrics.classification.BinaryConfusionMatrix 23 | :exclude-members: update, compute 24 | 25 | MulticlassConfusionMatrix 26 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 27 | 28 | .. autoclass:: torchmetrics.classification.MulticlassConfusionMatrix 29 | :exclude-members: update, compute 30 | 31 | MultilabelConfusionMatrix 32 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 33 | 34 | .. autoclass:: torchmetrics.classification.MultilabelConfusionMatrix 35 | :exclude-members: update, compute 36 | 37 | Functional Interface 38 | ____________________ 39 | 40 | confusion_matrix 41 | ^^^^^^^^^^^^^^^^ 42 | 43 | .. autofunction:: torchmetrics.functional.confusion_matrix 44 | 45 | binary_confusion_matrix 46 | ^^^^^^^^^^^^^^^^^^^^^^^ 47 | 48 | .. autofunction:: torchmetrics.functional.classification.binary_confusion_matrix 49 | 50 | multiclass_confusion_matrix 51 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 52 | 53 | .. autofunction:: torchmetrics.functional.classification.multiclass_confusion_matrix 54 | 55 | multilabel_confusion_matrix 56 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 57 | 58 | .. autofunction:: torchmetrics.functional.classification.multilabel_confusion_matrix 59 | -------------------------------------------------------------------------------- /docs/source/classification/coverage_error.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Coverage Error 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Classification 5 | 6 | .. include:: ../links.rst 7 | 8 | ############## 9 | Coverage Error 10 | ############## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.classification.MultilabelCoverageError 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.classification.multilabel_coverage_error 22 | -------------------------------------------------------------------------------- /docs/source/classification/eer.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Expected Error Rate (EER) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Classification 5 | 6 | .. include:: ../links.rst 7 | 8 | ######################### 9 | Expected Error Rate (EER) 10 | ######################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.classification.EER 16 | :exclude-members: update, compute 17 | :special-members: __new__ 18 | 19 | BinaryEER 20 | ^^^^^^^^^^^ 21 | 22 | .. autoclass:: torchmetrics.classification.BinaryEER 23 | :exclude-members: update, compute 24 | 25 | MulticlassEER 26 | ^^^^^^^^^^^^^^^ 27 | 28 | .. autoclass:: torchmetrics.classification.MulticlassEER 29 | :exclude-members: update, compute 30 | 31 | MultilabelEER 32 | ^^^^^^^^^^^^^^^ 33 | 34 | .. autoclass:: torchmetrics.classification.MultilabelEER 35 | :exclude-members: update, compute 36 | 37 | Functional Interface 38 | ____________________ 39 | 40 | .. autofunction:: torchmetrics.functional.classification.eer 41 | 42 | binary_eer 43 | ^^^^^^^^^^^^ 44 | 45 | .. autofunction:: torchmetrics.functional.classification.binary_eer 46 | 47 | multiclass_eer 48 | ^^^^^^^^^^^^^^^^ 49 | 50 | .. autofunction:: torchmetrics.functional.classification.multiclass_eer 51 | 52 | multilabel_eer 53 | ^^^^^^^^^^^^^^^^ 54 | 55 | .. autofunction:: torchmetrics.functional.classification.multilabel_eer 56 | -------------------------------------------------------------------------------- /docs/source/classification/exact_match.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Exact Match 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Classification 5 | 6 | .. include:: ../links.rst 7 | 8 | ########### 9 | Exact Match 10 | ########### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.ExactMatch 16 | :exclude-members: update, compute 17 | :special-members: __new__ 18 | 19 | MulticlassExactMatch 20 | ^^^^^^^^^^^^^^^^^^^^ 21 | 22 | .. autoclass:: torchmetrics.classification.MulticlassExactMatch 23 | :exclude-members: update, compute 24 | 25 | MultilabelExactMatch 26 | ^^^^^^^^^^^^^^^^^^^^ 27 | 28 | .. autoclass:: torchmetrics.classification.MultilabelExactMatch 29 | :exclude-members: update, compute 30 | 31 | 32 | Functional Interface 33 | ____________________ 34 | 35 | exact_match 36 | ^^^^^^^^^^^ 37 | 38 | .. autofunction:: torchmetrics.functional.classification.exact_match 39 | 40 | multiclass_exact_match 41 | ^^^^^^^^^^^^^^^^^^^^^^ 42 | 43 | .. autofunction:: torchmetrics.functional.classification.multiclass_exact_match 44 | 45 | multilabel_exact_match 46 | ^^^^^^^^^^^^^^^^^^^^^^ 47 | 48 | .. autofunction:: torchmetrics.functional.classification.multilabel_exact_match 49 | -------------------------------------------------------------------------------- /docs/source/classification/f1_score.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: F-1 Score 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Classification 5 | 6 | .. include:: ../links.rst 7 | 8 | ######### 9 | F-1 Score 10 | ######### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.F1Score 16 | :exclude-members: update, compute 17 | :special-members: __new__ 18 | 19 | BinaryF1Score 20 | ^^^^^^^^^^^^^ 21 | 22 | .. autoclass:: torchmetrics.classification.BinaryF1Score 23 | :exclude-members: update, compute 24 | 25 | MulticlassF1Score 26 | ^^^^^^^^^^^^^^^^^ 27 | 28 | .. autoclass:: torchmetrics.classification.MulticlassF1Score 29 | :exclude-members: update, compute 30 | 31 | MultilabelF1Score 32 | ^^^^^^^^^^^^^^^^^ 33 | 34 | .. autoclass:: torchmetrics.classification.MultilabelF1Score 35 | :exclude-members: update, compute 36 | 37 | Functional Interface 38 | ____________________ 39 | 40 | f1_score 41 | ^^^^^^^^ 42 | 43 | .. autofunction:: torchmetrics.functional.f1_score 44 | 45 | binary_f1_score 46 | ^^^^^^^^^^^^^^^ 47 | 48 | .. autofunction:: torchmetrics.functional.classification.binary_f1_score 49 | 50 | multiclass_f1_score 51 | ^^^^^^^^^^^^^^^^^^^ 52 | 53 | .. autofunction:: torchmetrics.functional.classification.multiclass_f1_score 54 | 55 | multilabel_f1_score 56 | ^^^^^^^^^^^^^^^^^^^ 57 | 58 | .. autofunction:: torchmetrics.functional.classification.multilabel_f1_score 59 | -------------------------------------------------------------------------------- /docs/source/classification/fbeta_score.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: F-Beta Score 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Classification 5 | 6 | .. include:: ../links.rst 7 | 8 | ############ 9 | F-Beta Score 10 | ############ 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.FBetaScore 16 | :exclude-members: update, compute 17 | :special-members: __new__ 18 | 19 | BinaryFBetaScore 20 | ^^^^^^^^^^^^^^^^ 21 | 22 | .. autoclass:: torchmetrics.classification.BinaryFBetaScore 23 | :exclude-members: update, compute 24 | 25 | MulticlassFBetaScore 26 | ^^^^^^^^^^^^^^^^^^^^ 27 | 28 | .. autoclass:: torchmetrics.classification.MulticlassFBetaScore 29 | :exclude-members: update, compute 30 | 31 | MultilabelFBetaScore 32 | ^^^^^^^^^^^^^^^^^^^^ 33 | 34 | .. autoclass:: torchmetrics.classification.MultilabelFBetaScore 35 | :exclude-members: update, compute 36 | 37 | Functional Interface 38 | ____________________ 39 | 40 | fbeta_score 41 | ^^^^^^^^^^^ 42 | 43 | .. autofunction:: torchmetrics.functional.fbeta_score 44 | 45 | binary_fbeta_score 46 | ^^^^^^^^^^^^^^^^^^ 47 | 48 | .. autofunction:: torchmetrics.functional.classification.binary_fbeta_score 49 | 50 | multiclass_fbeta_score 51 | ^^^^^^^^^^^^^^^^^^^^^^ 52 | 53 | .. autofunction:: torchmetrics.functional.classification.multiclass_fbeta_score 54 | 55 | multilabel_fbeta_score 56 | ^^^^^^^^^^^^^^^^^^^^^^ 57 | 58 | .. autofunction:: torchmetrics.functional.classification.multilabel_fbeta_score 59 | -------------------------------------------------------------------------------- /docs/source/classification/group_fairness.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Group Fairness 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Classification 5 | 6 | .. include:: ../links.rst 7 | 8 | ############## 9 | Group Fairness 10 | ############## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | BinaryFairness 16 | ^^^^^^^^^^^^^^ 17 | 18 | .. autoclass:: torchmetrics.classification.BinaryFairness 19 | :exclude-members: update, compute 20 | 21 | BinaryGroupStatRates 22 | ^^^^^^^^^^^^^^^^^^^^ 23 | 24 | .. autoclass:: torchmetrics.classification.BinaryGroupStatRates 25 | :exclude-members: update, compute 26 | 27 | Functional Interface 28 | ____________________ 29 | 30 | binary_fairness 31 | ^^^^^^^^^^^^^^^ 32 | 33 | .. autofunction:: torchmetrics.functional.classification.binary_fairness 34 | 35 | demographic_parity 36 | ^^^^^^^^^^^^^^^^^^ 37 | 38 | .. autofunction:: torchmetrics.functional.classification.demographic_parity 39 | 40 | equal_opportunity 41 | ^^^^^^^^^^^^^^^^^ 42 | 43 | .. autofunction:: torchmetrics.functional.classification.equal_opportunity 44 | 45 | binary_groups_stat_rates 46 | ^^^^^^^^^^^^^^^^^^^^^^^^ 47 | 48 | .. autofunction:: torchmetrics.functional.classification.binary_groups_stat_rates 49 | -------------------------------------------------------------------------------- /docs/source/classification/hamming_distance.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Hamming Distance 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Classification 5 | 6 | .. include:: ../links.rst 7 | 8 | ################ 9 | Hamming Distance 10 | ################ 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.HammingDistance 16 | :exclude-members: update, compute 17 | :special-members: __new__ 18 | 19 | BinaryHammingDistance 20 | ^^^^^^^^^^^^^^^^^^^^^ 21 | 22 | .. autoclass:: torchmetrics.classification.BinaryHammingDistance 23 | :exclude-members: update, compute 24 | 25 | MulticlassHammingDistance 26 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 27 | 28 | .. autoclass:: torchmetrics.classification.MulticlassHammingDistance 29 | :exclude-members: update, compute 30 | 31 | MultilabelHammingDistance 32 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 33 | 34 | .. autoclass:: torchmetrics.classification.MultilabelHammingDistance 35 | :exclude-members: update, compute 36 | 37 | Functional Interface 38 | ____________________ 39 | 40 | hamming_distance 41 | ^^^^^^^^^^^^^^^^ 42 | 43 | .. autofunction:: torchmetrics.functional.hamming_distance 44 | 45 | binary_hamming_distance 46 | ^^^^^^^^^^^^^^^^^^^^^^^ 47 | 48 | .. autofunction:: torchmetrics.functional.classification.binary_hamming_distance 49 | 50 | multiclass_hamming_distance 51 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 52 | 53 | .. autofunction:: torchmetrics.functional.classification.multiclass_hamming_distance 54 | 55 | multilabel_hamming_distance 56 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 57 | 58 | .. autofunction:: torchmetrics.functional.classification.multilabel_hamming_distance 59 | -------------------------------------------------------------------------------- /docs/source/classification/hinge_loss.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Hinge Loss 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Classification 5 | 6 | .. include:: ../links.rst 7 | 8 | ########## 9 | Hinge Loss 10 | ########## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.HingeLoss 16 | :exclude-members: update, compute 17 | :special-members: __new__ 18 | 19 | BinaryHingeLoss 20 | ^^^^^^^^^^^^^^^ 21 | 22 | .. autoclass:: torchmetrics.classification.BinaryHingeLoss 23 | :exclude-members: update, compute 24 | 25 | MulticlassHingeLoss 26 | ^^^^^^^^^^^^^^^^^^^ 27 | 28 | .. autoclass:: torchmetrics.classification.MulticlassHingeLoss 29 | :exclude-members: update, compute 30 | 31 | Functional Interface 32 | ____________________ 33 | 34 | .. autofunction:: torchmetrics.functional.hinge_loss 35 | 36 | binary_hinge_loss 37 | ^^^^^^^^^^^^^^^^^ 38 | 39 | .. autofunction:: torchmetrics.functional.classification.binary_hinge_loss 40 | 41 | multiclass_hinge_loss 42 | ^^^^^^^^^^^^^^^^^^^^^ 43 | 44 | .. autofunction:: torchmetrics.functional.classification.multiclass_hinge_loss 45 | -------------------------------------------------------------------------------- /docs/source/classification/jaccard_index.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Jaccard Index 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Classification 5 | 6 | .. include:: ../links.rst 7 | 8 | ############# 9 | Jaccard Index 10 | ############# 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.JaccardIndex 16 | :exclude-members: update, compute 17 | :special-members: __new__ 18 | 19 | BinaryJaccardIndex 20 | ^^^^^^^^^^^^^^^^^^ 21 | 22 | .. autoclass:: torchmetrics.classification.BinaryJaccardIndex 23 | :exclude-members: update, compute 24 | 25 | MulticlassJaccardIndex 26 | ^^^^^^^^^^^^^^^^^^^^^^ 27 | 28 | .. autoclass:: torchmetrics.classification.MulticlassJaccardIndex 29 | :exclude-members: update, compute 30 | 31 | MultilabelJaccardIndex 32 | ^^^^^^^^^^^^^^^^^^^^^^ 33 | 34 | .. autoclass:: torchmetrics.classification.MultilabelJaccardIndex 35 | :exclude-members: update, compute 36 | 37 | 38 | Functional Interface 39 | ____________________ 40 | 41 | jaccard_index 42 | ^^^^^^^^^^^^^ 43 | 44 | .. autofunction:: torchmetrics.functional.jaccard_index 45 | 46 | binary_jaccard_index 47 | ^^^^^^^^^^^^^^^^^^^^ 48 | 49 | .. autofunction:: torchmetrics.functional.classification.binary_jaccard_index 50 | 51 | multiclass_jaccard_index 52 | ^^^^^^^^^^^^^^^^^^^^^^^^ 53 | 54 | .. autofunction:: torchmetrics.functional.classification.multiclass_jaccard_index 55 | 56 | multilabel_jaccard_index 57 | ^^^^^^^^^^^^^^^^^^^^^^^^ 58 | 59 | .. autofunction:: torchmetrics.functional.classification.multilabel_jaccard_index 60 | -------------------------------------------------------------------------------- /docs/source/classification/label_ranking_average_precision.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Label Ranking Average Precision 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Classification 5 | 6 | .. include:: ../links.rst 7 | 8 | ############################### 9 | Label Ranking Average Precision 10 | ############################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.classification.MultilabelRankingAveragePrecision 16 | :exclude-members: update, compute 17 | 18 | 19 | Functional Interface 20 | ____________________ 21 | 22 | .. autofunction:: torchmetrics.functional.classification.multilabel_ranking_average_precision 23 | -------------------------------------------------------------------------------- /docs/source/classification/label_ranking_loss.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Label Ranking Loss 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Classification 5 | 6 | .. include:: ../links.rst 7 | 8 | ################## 9 | Label Ranking Loss 10 | ################## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.classification.MultilabelRankingLoss 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.classification.multilabel_ranking_loss 22 | -------------------------------------------------------------------------------- /docs/source/classification/logauc.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Log Area Receiver Operating Characteristic (LogAUC) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Classification 5 | 6 | .. include:: ../links.rst 7 | 8 | ####### 9 | Log AUC 10 | ####### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.LogAUC 16 | :exclude-members: update, compute 17 | :special-members: __new__ 18 | 19 | BinaryLogAUC 20 | ^^^^^^^^^^^^ 21 | 22 | .. autoclass:: torchmetrics.classification.BinaryLogAUC 23 | :exclude-members: update, compute 24 | 25 | MulticlassLogAUC 26 | ^^^^^^^^^^^^^^^^ 27 | 28 | .. autoclass:: torchmetrics.classification.MulticlassLogAUC 29 | :exclude-members: update, compute 30 | 31 | MultilabelLogAUC 32 | ^^^^^^^^^^^^^^^^ 33 | 34 | .. autoclass:: torchmetrics.classification.MultilabelLogAUC 35 | :exclude-members: update, compute 36 | 37 | Functional Interface 38 | ____________________ 39 | 40 | .. autofunction:: torchmetrics.functional.logauc 41 | 42 | binary_logauc 43 | ^^^^^^^^^^^^^ 44 | 45 | .. autofunction:: torchmetrics.functional.classification.binary_logauc 46 | 47 | multiclass_logauc 48 | ^^^^^^^^^^^^^^^^^ 49 | 50 | .. autofunction:: torchmetrics.functional.classification.multiclass_logauc 51 | 52 | multilabel_logauc 53 | ^^^^^^^^^^^^^^^^^ 54 | 55 | .. autofunction:: torchmetrics.functional.classification.multilabel_logauc 56 | -------------------------------------------------------------------------------- /docs/source/classification/precision.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Precision 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Classification 5 | 6 | .. include:: ../links.rst 7 | 8 | ######### 9 | Precision 10 | ######### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.Precision 16 | :exclude-members: update, compute 17 | :special-members: __new__ 18 | 19 | BinaryPrecision 20 | ^^^^^^^^^^^^^^^ 21 | 22 | .. autoclass:: torchmetrics.classification.BinaryPrecision 23 | :exclude-members: update, compute 24 | 25 | MulticlassPrecision 26 | ^^^^^^^^^^^^^^^^^^^ 27 | 28 | .. autoclass:: torchmetrics.classification.MulticlassPrecision 29 | :exclude-members: update, compute 30 | 31 | MultilabelPrecision 32 | ^^^^^^^^^^^^^^^^^^^ 33 | 34 | .. autoclass:: torchmetrics.classification.MultilabelPrecision 35 | :exclude-members: update, compute 36 | 37 | Functional Interface 38 | ____________________ 39 | 40 | .. autofunction:: torchmetrics.functional.precision 41 | 42 | binary_precision 43 | ^^^^^^^^^^^^^^^^ 44 | 45 | .. autofunction:: torchmetrics.functional.classification.binary_precision 46 | 47 | multiclass_precision 48 | ^^^^^^^^^^^^^^^^^^^^ 49 | 50 | .. autofunction:: torchmetrics.functional.classification.multiclass_precision 51 | 52 | multilabel_precision 53 | ^^^^^^^^^^^^^^^^^^^^ 54 | 55 | .. autofunction:: torchmetrics.functional.classification.multilabel_precision 56 | -------------------------------------------------------------------------------- /docs/source/classification/recall.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Recall 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Classification 5 | 6 | .. include:: ../links.rst 7 | 8 | ###### 9 | Recall 10 | ###### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.Recall 16 | :exclude-members: update, compute 17 | :special-members: __new__ 18 | 19 | BinaryRecall 20 | ^^^^^^^^^^^^ 21 | 22 | .. autoclass:: torchmetrics.classification.BinaryRecall 23 | :exclude-members: update, compute 24 | 25 | MulticlassRecall 26 | ^^^^^^^^^^^^^^^^ 27 | 28 | .. autoclass:: torchmetrics.classification.MulticlassRecall 29 | :exclude-members: update, compute 30 | 31 | MultilabelRecall 32 | ^^^^^^^^^^^^^^^^ 33 | 34 | .. autoclass:: torchmetrics.classification.MultilabelRecall 35 | :exclude-members: update, compute 36 | 37 | Functional Interface 38 | ____________________ 39 | 40 | .. autofunction:: torchmetrics.functional.recall 41 | 42 | binary_recall 43 | ^^^^^^^^^^^^^ 44 | 45 | .. autofunction:: torchmetrics.functional.classification.binary_recall 46 | 47 | multiclass_recall 48 | ^^^^^^^^^^^^^^^^^ 49 | 50 | .. autofunction:: torchmetrics.functional.classification.multiclass_recall 51 | 52 | multilabel_recall 53 | ^^^^^^^^^^^^^^^^^ 54 | 55 | .. autofunction:: torchmetrics.functional.classification.multilabel_recall 56 | -------------------------------------------------------------------------------- /docs/source/classification/roc.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Receiver Operating Characteristic Curve (ROC) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Classification 5 | 6 | .. include:: ../links.rst 7 | 8 | ### 9 | ROC 10 | ### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.ROC 16 | :exclude-members: update, compute 17 | :special-members: __new__ 18 | 19 | BinaryROC 20 | ^^^^^^^^^ 21 | 22 | .. autoclass:: torchmetrics.classification.BinaryROC 23 | :exclude-members: update, compute 24 | 25 | MulticlassROC 26 | ^^^^^^^^^^^^^ 27 | 28 | .. autoclass:: torchmetrics.classification.MulticlassROC 29 | :exclude-members: update, compute 30 | 31 | MultilabelROC 32 | ^^^^^^^^^^^^^ 33 | 34 | .. autoclass:: torchmetrics.classification.MultilabelROC 35 | :exclude-members: update, compute 36 | 37 | Functional Interface 38 | ____________________ 39 | 40 | .. autofunction:: torchmetrics.functional.roc 41 | 42 | binary_roc 43 | ^^^^^^^^^^ 44 | 45 | .. autofunction:: torchmetrics.functional.classification.binary_roc 46 | 47 | multiclass_roc 48 | ^^^^^^^^^^^^^^ 49 | 50 | .. autofunction:: torchmetrics.functional.classification.multiclass_roc 51 | 52 | multilabel_roc 53 | ^^^^^^^^^^^^^^ 54 | 55 | .. autofunction:: torchmetrics.functional.classification.multilabel_roc 56 | -------------------------------------------------------------------------------- /docs/source/classification/specificity.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Specificity 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Classification 5 | 6 | .. include:: ../links.rst 7 | 8 | ########### 9 | Specificity 10 | ########### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.Specificity 16 | :exclude-members: update, compute 17 | :special-members: __new__ 18 | 19 | BinarySpecificity 20 | ^^^^^^^^^^^^^^^^^ 21 | 22 | .. autoclass:: torchmetrics.classification.BinarySpecificity 23 | :exclude-members: update, compute 24 | 25 | MulticlassSpecificity 26 | ^^^^^^^^^^^^^^^^^^^^^ 27 | 28 | .. autoclass:: torchmetrics.classification.MulticlassSpecificity 29 | :exclude-members: update, compute 30 | 31 | MultilabelSpecificity 32 | ^^^^^^^^^^^^^^^^^^^^^ 33 | 34 | .. autoclass:: torchmetrics.classification.MultilabelSpecificity 35 | :exclude-members: update, compute 36 | 37 | 38 | Functional Interface 39 | ____________________ 40 | 41 | .. autofunction:: torchmetrics.functional.specificity 42 | 43 | binary_specificity 44 | ^^^^^^^^^^^^^^^^^^ 45 | 46 | .. autofunction:: torchmetrics.functional.classification.binary_specificity 47 | 48 | multiclass_specificity 49 | ^^^^^^^^^^^^^^^^^^^^^^ 50 | 51 | .. autofunction:: torchmetrics.functional.classification.multiclass_specificity 52 | 53 | multilabel_specificity 54 | ^^^^^^^^^^^^^^^^^^^^^^ 55 | 56 | .. autofunction:: torchmetrics.functional.classification.multilabel_specificity 57 | -------------------------------------------------------------------------------- /docs/source/classification/stat_scores.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Stat Scores 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Classification 5 | 6 | .. include:: ../links.rst 7 | 8 | ########### 9 | Stat Scores 10 | ########### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.StatScores 16 | :exclude-members: update, compute 17 | :special-members: __new__ 18 | 19 | BinaryStatScores 20 | ^^^^^^^^^^^^^^^^ 21 | 22 | .. autoclass:: torchmetrics.classification.BinaryStatScores 23 | :exclude-members: update, compute 24 | 25 | MulticlassStatScores 26 | ^^^^^^^^^^^^^^^^^^^^ 27 | 28 | .. autoclass:: torchmetrics.classification.MulticlassStatScores 29 | :exclude-members: update, compute 30 | 31 | MultilabelStatScores 32 | ^^^^^^^^^^^^^^^^^^^^ 33 | 34 | .. autoclass:: torchmetrics.classification.MultilabelStatScores 35 | :exclude-members: update, compute 36 | 37 | Functional Interface 38 | ____________________ 39 | 40 | stat_scores 41 | ^^^^^^^^^^^ 42 | 43 | .. autofunction:: torchmetrics.functional.stat_scores 44 | 45 | binary_stat_scores 46 | ^^^^^^^^^^^^^^^^^^ 47 | 48 | .. autofunction:: torchmetrics.functional.classification.binary_stat_scores 49 | 50 | multiclass_stat_scores 51 | ^^^^^^^^^^^^^^^^^^^^^^ 52 | 53 | .. autofunction:: torchmetrics.functional.classification.multiclass_stat_scores 54 | 55 | multilabel_stat_scores 56 | ^^^^^^^^^^^^^^^^^^^^^^ 57 | 58 | .. autofunction:: torchmetrics.functional.classification.multilabel_stat_scores 59 | -------------------------------------------------------------------------------- /docs/source/clustering/adjusted_mutual_info_score.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Adjusted Mutual Information Score 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/default.svg 4 | :tags: Clustering 5 | 6 | .. include:: ../links.rst 7 | 8 | ################################# 9 | Adjusted Mutual Information Score 10 | ################################# 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.clustering.AdjustedMutualInfoScore 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.clustering.adjusted_mutual_info_score 22 | -------------------------------------------------------------------------------- /docs/source/clustering/adjusted_rand_score.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Adjusted Rand Score 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/default.svg 4 | :tags: Clustering 5 | 6 | .. include:: ../links.rst 7 | 8 | ################### 9 | Adjusted Rand Score 10 | ################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.clustering.AdjustedRandScore 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.clustering.adjusted_rand_score 22 | -------------------------------------------------------------------------------- /docs/source/clustering/calinski_harabasz_score.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Calinski Harabasz Score 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/default.svg 4 | :tags: Clustering 5 | 6 | .. include:: ../links.rst 7 | 8 | ####################### 9 | Calinski Harabasz Score 10 | ####################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.clustering.CalinskiHarabaszScore 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.clustering.calinski_harabasz_score 22 | -------------------------------------------------------------------------------- /docs/source/clustering/cluster_accuracy.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Cluster Accuracy 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/default.svg 4 | :tags: Clustering 5 | 6 | .. include:: ../links.rst 7 | 8 | ################ 9 | Cluster Accuracy 10 | ################ 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.clustering.ClusterAccuracy 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.clustering.cluster_accuracy 22 | -------------------------------------------------------------------------------- /docs/source/clustering/completeness_score.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Completeness Score 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/default.svg 4 | :tags: Clustering 5 | 6 | .. include:: ../links.rst 7 | 8 | ################## 9 | Completeness Score 10 | ################## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.clustering.CompletenessScore 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.clustering.completeness_score 22 | -------------------------------------------------------------------------------- /docs/source/clustering/davies_bouldin_score.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Davies Bouldin Score 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/default.svg 4 | :tags: Clustering 5 | 6 | .. include:: ../links.rst 7 | 8 | #################### 9 | Davies Bouldin Score 10 | #################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.clustering.DaviesBouldinScore 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.clustering.davies_bouldin_score 22 | -------------------------------------------------------------------------------- /docs/source/clustering/dunn_index.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Dunn Index 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/clustering.svg 4 | :tags: Clustering 5 | 6 | .. include:: ../links.rst 7 | 8 | ########## 9 | Dunn Index 10 | ########## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.clustering.DunnIndex 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.clustering.dunn_index 22 | -------------------------------------------------------------------------------- /docs/source/clustering/fowlkes_mallows_index.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Fowlkes Mallows Score 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/default.svg 4 | :tags: Clustering 5 | 6 | .. include:: ../links.rst 7 | 8 | ##################### 9 | Fowlkes-Mallows Index 10 | ##################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.clustering.FowlkesMallowsIndex 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.clustering.fowlkes_mallows_index 22 | -------------------------------------------------------------------------------- /docs/source/clustering/homogeneity_score.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Homogeneity Score 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/default.svg 4 | :tags: Clustering 5 | 6 | .. include:: ../links.rst 7 | 8 | ################# 9 | Homogeneity Score 10 | ################# 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.clustering.HomogeneityScore 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.clustering.homogeneity_score 22 | -------------------------------------------------------------------------------- /docs/source/clustering/mutual_info_score.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Mutual Information Score 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/default.svg 4 | :tags: Clustering 5 | 6 | .. include:: ../links.rst 7 | 8 | ######################## 9 | Mutual Information Score 10 | ######################## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.clustering.MutualInfoScore 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.clustering.mutual_info_score 22 | -------------------------------------------------------------------------------- /docs/source/clustering/normalized_mutual_info_score.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Normalized Mutual Information Score 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/default.svg 4 | :tags: Clustering 5 | 6 | .. include:: ../links.rst 7 | 8 | ################################### 9 | Normalized Mutual Information Score 10 | ################################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.clustering.NormalizedMutualInfoScore 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.clustering.normalized_mutual_info_score 22 | -------------------------------------------------------------------------------- /docs/source/clustering/rand_score.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Rand Score 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/default.svg 4 | :tags: Clustering 5 | 6 | .. include:: ../links.rst 7 | 8 | ########## 9 | Rand Score 10 | ########## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.clustering.RandScore 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.clustering.rand_score 22 | -------------------------------------------------------------------------------- /docs/source/clustering/v_measure_score.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: V-Measure Score 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/default.svg 4 | :tags: Clustering 5 | 6 | .. include:: ../links.rst 7 | 8 | ############### 9 | V-Measure Score 10 | ############### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.clustering.VMeasureScore 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.clustering.v_measure_score 22 | -------------------------------------------------------------------------------- /docs/source/detection/complete_intersection_over_union.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Complete Intersection Over Union (cIoU) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/object_detection.svg 4 | :tags: Detection 5 | 6 | .. include:: ../links.rst 7 | 8 | ####################################### 9 | Complete Intersection Over Union (cIoU) 10 | ####################################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.detection.ciou.CompleteIntersectionOverUnion 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.detection.ciou.complete_intersection_over_union 22 | -------------------------------------------------------------------------------- /docs/source/detection/distance_intersection_over_union.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Distance Intersection Over Union (dIoU) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/object_detection.svg 4 | :tags: Detection 5 | 6 | .. include:: ../links.rst 7 | 8 | ####################################### 9 | Distance Intersection Over Union (dIoU) 10 | ####################################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.detection.diou.DistanceIntersectionOverUnion 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.detection.diou.distance_intersection_over_union 22 | -------------------------------------------------------------------------------- /docs/source/detection/generalized_intersection_over_union.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Generalized Intersection Over Union (gIoU) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/object_detection.svg 4 | :tags: Detection 5 | 6 | .. include:: ../links.rst 7 | 8 | ########################################## 9 | Generalized Intersection Over Union (gIoU) 10 | ########################################## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.detection.giou.GeneralizedIntersectionOverUnion 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.detection.giou.generalized_intersection_over_union 22 | -------------------------------------------------------------------------------- /docs/source/detection/intersection_over_union.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Intersection Over Union (IoU) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/object_detection.svg 4 | :tags: Detection 5 | 6 | .. include:: ../links.rst 7 | 8 | ############################# 9 | Intersection Over Union (IoU) 10 | ############################# 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.detection.iou.IntersectionOverUnion 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.detection.iou.intersection_over_union 22 | -------------------------------------------------------------------------------- /docs/source/detection/mean_average_precision.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Mean-Average-Precision (mAP) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/object_detection.svg 4 | :tags: Detection 5 | 6 | .. include:: ../links.rst 7 | 8 | ############################ 9 | Mean-Average-Precision (mAP) 10 | ############################ 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.detection.mean_ap.MeanAveragePrecision 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.detection.mean_average_precision 22 | -------------------------------------------------------------------------------- /docs/source/detection/modified_panoptic_quality.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Modified Panoptic Quality 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/image_classification.svg 4 | :tags: Detection 5 | 6 | .. include:: ../links.rst 7 | 8 | ######################### 9 | Modified Panoptic Quality 10 | ######################### 11 | 12 | .. include:: ../links.rst 13 | 14 | Module Interface 15 | ________________ 16 | 17 | .. autoclass:: torchmetrics.detection.ModifiedPanopticQuality 18 | :exclude-members: update, compute 19 | 20 | Functional Interface 21 | ____________________ 22 | 23 | .. autofunction:: torchmetrics.functional.detection.modified_panoptic_quality 24 | -------------------------------------------------------------------------------- /docs/source/detection/panoptic_quality.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Panoptic Quality 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/image_classification.svg 4 | :tags: Detection 5 | 6 | .. include:: ../links.rst 7 | 8 | ################ 9 | Panoptic Quality 10 | ################ 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.detection.PanopticQuality 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.detection.panoptic_quality 22 | -------------------------------------------------------------------------------- /docs/source/image/arniqa.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: ARNIQA 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/image_classification.svg 4 | :tags: Image 5 | 6 | .. include:: ../links.rst 7 | 8 | ###### 9 | ARNIQA 10 | ###### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.image.arniqa.ARNIQA 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.image.arniqa 22 | -------------------------------------------------------------------------------- /docs/source/image/dists.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Deep Image Structure And Texture Similarity (DISTS) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/image_classification.svg 4 | :tags: Image 5 | 6 | .. include:: ../links.rst 7 | 8 | ################################################### 9 | Deep Image Structure And Texture Similarity (DISTS) 10 | ################################################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.image.dists.DeepImageStructureAndTextureSimilarity 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.image.dists.deep_image_structure_and_texture_similarity 22 | -------------------------------------------------------------------------------- /docs/source/image/error_relative_global_dimensionless_synthesis.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Error Relative Global Dimensionless Synthesis (ERGAS) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/image_classification.svg 4 | :tags: Image 5 | 6 | .. include:: ../links.rst 7 | 8 | ############################################ 9 | Error Relative Global Dim. Synthesis (ERGAS) 10 | ############################################ 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.image.ErrorRelativeGlobalDimensionlessSynthesis 16 | :exclude-members: update, compute 17 | 18 | 19 | Functional Interface 20 | ____________________ 21 | 22 | .. autofunction:: torchmetrics.functional.image.error_relative_global_dimensionless_synthesis 23 | -------------------------------------------------------------------------------- /docs/source/image/frechet_inception_distance.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Frechet Inception Distance (FID) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/image_classification.svg 4 | :tags: Image 5 | 6 | .. include:: ../links.rst 7 | 8 | ################################ 9 | Frechet Inception Distance (FID) 10 | ################################ 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.image.fid.FrechetInceptionDistance 16 | :exclude-members: update, compute 17 | -------------------------------------------------------------------------------- /docs/source/image/image_gradients.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Image Gradients 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/image_classification.svg 4 | :tags: Image 5 | 6 | .. include:: ../links.rst 7 | 8 | ############### 9 | Image Gradients 10 | ############### 11 | 12 | Functional Interface 13 | ____________________ 14 | 15 | .. autofunction:: torchmetrics.functional.image.image_gradients 16 | -------------------------------------------------------------------------------- /docs/source/image/inception_score.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Inception Score 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/image_classification.svg 4 | :tags: Image 5 | 6 | .. include:: ../links.rst 7 | 8 | ############### 9 | Inception Score 10 | ############### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.image.inception.InceptionScore 16 | :exclude-members: update, compute 17 | -------------------------------------------------------------------------------- /docs/source/image/kernel_inception_distance.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Kernel Inception Distance 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/image_classification.svg 4 | :tags: Image 5 | 6 | .. include:: ../links.rst 7 | 8 | ######################### 9 | Kernel Inception Distance 10 | ######################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.image.kid.KernelInceptionDistance 16 | :exclude-members: update, compute 17 | -------------------------------------------------------------------------------- /docs/source/image/learned_perceptual_image_patch_similarity.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Learned Perceptual Image Patch Similarity (LPIPS) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/image_classification.svg 4 | :tags: Image 5 | 6 | .. include:: ../links.rst 7 | 8 | ################################################# 9 | Learned Perceptual Image Patch Similarity (LPIPS) 10 | ################################################# 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.image.lpip.LearnedPerceptualImagePatchSimilarity 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.image.learned_perceptual_image_patch_similarity 22 | -------------------------------------------------------------------------------- /docs/source/image/mifid.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Memorization-Informed Frechet Inception Distance (MiFID) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/image_classification.svg 4 | :tags: Image 5 | 6 | .. include:: ../links.rst 7 | 8 | ######################################################## 9 | Memorization-Informed Frechet Inception Distance (MiFID) 10 | ######################################################## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.image.mifid.MemorizationInformedFrechetInceptionDistance 16 | :exclude-members: update, compute 17 | -------------------------------------------------------------------------------- /docs/source/image/multi_scale_structural_similarity.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Multi-Scale Structural Similarity Index Measure 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/image_classification.svg 4 | :tags: Image 5 | 6 | .. include:: ../links.rst 7 | 8 | ################ 9 | Multi-Scale SSIM 10 | ################ 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.image.MultiScaleStructuralSimilarityIndexMeasure 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.image.multiscale_structural_similarity_index_measure 22 | -------------------------------------------------------------------------------- /docs/source/image/peak_signal_noise_ratio.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Peak Signal-to-Noise Ratio (PSNR) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/image_classification.svg 4 | :tags: Image 5 | 6 | .. include:: ../links.rst 7 | 8 | ################################# 9 | Peak Signal-to-Noise Ratio (PSNR) 10 | ################################# 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.image.PeakSignalNoiseRatio 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.image.peak_signal_noise_ratio 22 | -------------------------------------------------------------------------------- /docs/source/image/peak_signal_to_noise_with_block.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Peak Signal To Noise Ratio With Blocked Effect 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/image_classification.svg 4 | :tags: Image 5 | 6 | .. include:: ../links.rst 7 | 8 | ############################################## 9 | Peak Signal To Noise Ratio With Blocked Effect 10 | ############################################## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.image.PeakSignalNoiseRatioWithBlockedEffect 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.image.peak_signal_noise_ratio_with_blocked_effect 22 | -------------------------------------------------------------------------------- /docs/source/image/perceptual_path_length.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Perceptual Path Length 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/image_classification.svg 4 | :tags: Image 5 | 6 | .. include:: ../links.rst 7 | 8 | ############################ 9 | Perceptual Path Length (PPL) 10 | ############################ 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.image.perceptual_path_length.PerceptualPathLength 16 | :exclude-members: update, compute 17 | 18 | .. autoclass:: torchmetrics.image.perceptual_path_length.GeneratorType 19 | 20 | Functional Interface 21 | ____________________ 22 | 23 | .. autofunction:: torchmetrics.functional.image.perceptual_path_length.perceptual_path_length 24 | -------------------------------------------------------------------------------- /docs/source/image/quality_with_no_reference.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Quality with No Reference 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/image_classification.svg 4 | :tags: Image 5 | 6 | .. include:: ../links.rst 7 | 8 | ######################### 9 | Quality with No Reference 10 | ######################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.image.QualityWithNoReference 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.image.quality_with_no_reference 22 | -------------------------------------------------------------------------------- /docs/source/image/relative_average_spectral_error.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Relative Average Spectral Error (RASE) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/image_classification.svg 4 | :tags: Image 5 | 6 | .. include:: ../links.rst 7 | 8 | ###################################### 9 | Relative Average Spectral Error (RASE) 10 | ###################################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.image.RelativeAverageSpectralError 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.image.relative_average_spectral_error 22 | -------------------------------------------------------------------------------- /docs/source/image/root_mean_squared_error_using_sliding_window.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Root Mean Squared Error Using Sliding Window 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/image_classification.svg 4 | :tags: Image 5 | 6 | .. include:: ../links.rst 7 | 8 | ############################################ 9 | Root Mean Squared Error Using Sliding Window 10 | ############################################ 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.image.RootMeanSquaredErrorUsingSlidingWindow 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.image.root_mean_squared_error_using_sliding_window 22 | -------------------------------------------------------------------------------- /docs/source/image/spatial_correlation_coefficient.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Spatial Correlation Coefficient (SCC) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/image_classification.svg 4 | :tags: Image 5 | 6 | .. include:: ../links.rst 7 | 8 | ##################################### 9 | Spatial Correlation Coefficient (SCC) 10 | ##################################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.image.SpatialCorrelationCoefficient 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.image.spatial_correlation_coefficient 22 | -------------------------------------------------------------------------------- /docs/source/image/spatial_distortion_index.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Spatial Distortion Index 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/image_classification.svg 4 | :tags: Image 5 | 6 | .. include:: ../links.rst 7 | 8 | ######################## 9 | Spatial Distortion Index 10 | ######################## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.image.SpatialDistortionIndex 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.image.spatial_distortion_index 22 | -------------------------------------------------------------------------------- /docs/source/image/spectral_angle_mapper.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Spectral Angle Mapper 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/image_classification.svg 4 | :tags: Image 5 | 6 | .. include:: ../links.rst 7 | 8 | ##################### 9 | Spectral Angle Mapper 10 | ##################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.image.SpectralAngleMapper 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.image.spectral_angle_mapper 22 | -------------------------------------------------------------------------------- /docs/source/image/spectral_distortion_index.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Spectral Distortion Index 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/image_classification.svg 4 | :tags: Image 5 | 6 | .. include:: ../links.rst 7 | 8 | ######################### 9 | Spectral Distortion Index 10 | ######################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.image.SpectralDistortionIndex 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.image.spectral_distortion_index 22 | -------------------------------------------------------------------------------- /docs/source/image/structural_similarity.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Structural Similarity Index Measure (SSIM) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/image_classification.svg 4 | :tags: Image 5 | 6 | .. include:: ../links.rst 7 | 8 | ########################################## 9 | Structural Similarity Index Measure (SSIM) 10 | ########################################## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.image.StructuralSimilarityIndexMeasure 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.image.structural_similarity_index_measure 22 | -------------------------------------------------------------------------------- /docs/source/image/total_variation.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Total Variation (TV) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/image_classification.svg 4 | :tags: Image 5 | 6 | .. include:: ../links.rst 7 | 8 | #################### 9 | Total Variation (TV) 10 | #################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.image.TotalVariation 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.image.total_variation 22 | -------------------------------------------------------------------------------- /docs/source/image/universal_image_quality_index.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Universal Image Quality Index 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/image_classification.svg 4 | :tags: Image 5 | 6 | .. include:: ../links.rst 7 | 8 | ############################# 9 | Universal Image Quality Index 10 | ############################# 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.image.UniversalImageQualityIndex 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.image.universal_image_quality_index 22 | -------------------------------------------------------------------------------- /docs/source/image/visual_information_fidelity.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Visual Information Fidelity (VIF) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/image_classification.svg 4 | :tags: Image 5 | 6 | .. include:: ../links.rst 7 | 8 | ################################# 9 | Visual Information Fidelity (VIF) 10 | ################################# 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.image.VisualInformationFidelity 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.image.visual_information_fidelity 22 | -------------------------------------------------------------------------------- /docs/source/multimodal/clip_iqa.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: CLIP IQA 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/image_classification.svg 4 | :tags: Multimodal 5 | 6 | .. include:: ../links.rst 7 | 8 | ######################################## 9 | CLIP Image Quality Assessment (CLIP-IQA) 10 | ######################################## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.multimodal.CLIPImageQualityAssessment 16 | :noindex: 17 | :exclude-members: update, compute 18 | 19 | 20 | Functional Interface 21 | ____________________ 22 | 23 | .. autofunction:: torchmetrics.functional.multimodal.clip_image_quality_assessment 24 | :noindex: 25 | -------------------------------------------------------------------------------- /docs/source/multimodal/clip_score.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: CLIP Score 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/image_classification.svg 4 | :tags: Multimodal 5 | 6 | .. include:: ../links.rst 7 | 8 | ########## 9 | CLIP Score 10 | ########## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.multimodal.clip_score.CLIPScore 16 | 17 | Functional Interface 18 | ____________________ 19 | 20 | .. autofunction:: torchmetrics.functional.multimodal.clip_score.clip_score 21 | -------------------------------------------------------------------------------- /docs/source/multimodal/lve.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Lip Vertex Error 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/image_classification.svg 4 | :tags: Multimodal 5 | 6 | .. include:: ../links.rst 7 | 8 | ################ 9 | Lip Vertex Error 10 | ################ 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.multimodal.lve.LipVertexError 16 | 17 | Functional Interface 18 | ____________________ 19 | 20 | .. autofunction:: torchmetrics.functional.multimodal.lve.lip_vertex_error 21 | -------------------------------------------------------------------------------- /docs/source/nominal/cramers_v.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Cramer's V 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Nominal 5 | 6 | .. include:: ../links.rst 7 | 8 | ########## 9 | Cramer's V 10 | ########## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.nominal.CramersV 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.nominal.cramers_v 22 | 23 | cramers_v_matrix 24 | ^^^^^^^^^^^^^^^^ 25 | 26 | .. autofunction:: torchmetrics.functional.nominal.cramers_v_matrix 27 | -------------------------------------------------------------------------------- /docs/source/nominal/fleiss_kappa.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Fleiss Kappa 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Nominal 5 | 6 | .. include:: ../links.rst 7 | 8 | ############ 9 | Fleiss Kappa 10 | ############ 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.nominal.FleissKappa 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.nominal.fleiss_kappa 22 | -------------------------------------------------------------------------------- /docs/source/nominal/pearsons_contingency_coefficient.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Pearson's Contingency Coefficient 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Nominal 5 | 6 | .. include:: ../links.rst 7 | 8 | ################################# 9 | Pearson's Contingency Coefficient 10 | ################################# 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.nominal.PearsonsContingencyCoefficient 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.nominal.pearsons_contingency_coefficient 22 | 23 | pearsons_contingency_coefficient_matrix 24 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 25 | 26 | .. autofunction:: torchmetrics.functional.nominal.pearsons_contingency_coefficient_matrix 27 | -------------------------------------------------------------------------------- /docs/source/nominal/theils_u.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Theil's U 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Nominal 5 | 6 | .. include:: ../links.rst 7 | 8 | ######### 9 | Theil's U 10 | ######### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.nominal.TheilsU 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.nominal.theils_u 22 | 23 | theils_u_matrix 24 | ^^^^^^^^^^^^^^^ 25 | 26 | .. autofunction:: torchmetrics.functional.nominal.theils_u_matrix 27 | -------------------------------------------------------------------------------- /docs/source/nominal/tschuprows_t.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Tschuprow's T 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Nominal 5 | 6 | .. include:: ../links.rst 7 | 8 | ############# 9 | Tschuprow's T 10 | ############# 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.nominal.TschuprowsT 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.nominal.tschuprows_t 22 | 23 | tschuprows_t_matrix 24 | ^^^^^^^^^^^^^^^^^^^ 25 | 26 | .. autofunction:: torchmetrics.functional.nominal.tschuprows_t_matrix 27 | -------------------------------------------------------------------------------- /docs/source/pairwise/cosine_similarity.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Pairwise Cosine Similarity 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/translation.svg 4 | :tags: Pairwise 5 | 6 | .. include:: ../links.rst 7 | 8 | ################# 9 | Cosine Similarity 10 | ################# 11 | 12 | Functional Interface 13 | ____________________ 14 | 15 | .. autofunction:: torchmetrics.functional.pairwise_cosine_similarity 16 | -------------------------------------------------------------------------------- /docs/source/pairwise/euclidean_distance.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Pairwise Euclidean Distance 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/translation.svg 4 | :tags: Pairwise 5 | 6 | .. include:: ../links.rst 7 | 8 | ################## 9 | Euclidean Distance 10 | ################## 11 | 12 | Functional Interface 13 | ____________________ 14 | 15 | .. autofunction:: torchmetrics.functional.pairwise_euclidean_distance 16 | -------------------------------------------------------------------------------- /docs/source/pairwise/linear_similarity.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Pairwise Linear Similarity 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/translation.svg 4 | :tags: Pairwise 5 | 6 | .. include:: ../links.rst 7 | 8 | ################# 9 | Linear Similarity 10 | ################# 11 | 12 | Functional Interface 13 | ____________________ 14 | 15 | .. autofunction:: torchmetrics.functional.pairwise_linear_similarity 16 | -------------------------------------------------------------------------------- /docs/source/pairwise/manhattan_distance.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Pairwise Manhattan Distance 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/translation.svg 4 | :tags: Pairwise 5 | 6 | .. include:: ../links.rst 7 | 8 | ################## 9 | Manhattan Distance 10 | ################## 11 | 12 | Functional Interface 13 | ____________________ 14 | 15 | .. autofunction:: torchmetrics.functional.pairwise_manhattan_distance 16 | -------------------------------------------------------------------------------- /docs/source/pairwise/minkowski_distance.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Pairwise Minkowski Distance 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/translation.svg 4 | :tags: Pairwise 5 | 6 | .. include:: ../links.rst 7 | 8 | ################## 9 | Minkowski Distance 10 | ################## 11 | 12 | Functional Interface 13 | ____________________ 14 | 15 | .. autofunction:: torchmetrics.functional.pairwise_minkowski_distance 16 | -------------------------------------------------------------------------------- /docs/source/pyplots/binary_accuracy.py: -------------------------------------------------------------------------------- 1 | import matplotlib.pyplot as plt 2 | import torch 3 | 4 | import torchmetrics 5 | 6 | N = 10 7 | num_updates = 10 8 | num_steps = 5 9 | 10 | fig, ax = plt.subplots(1, 1, figsize=(6.8, 4.8), dpi=500) 11 | metric = torchmetrics.Accuracy(task="binary") 12 | for _ in range(N): 13 | metric.update(torch.rand(10), torch.randint(2, (10,))) 14 | metric.plot(ax=ax) 15 | fig.show() 16 | -------------------------------------------------------------------------------- /docs/source/pyplots/binary_accuracy_multistep.py: -------------------------------------------------------------------------------- 1 | import matplotlib.pyplot as plt 2 | import torch 3 | 4 | import torchmetrics 5 | 6 | N = 10 7 | num_updates = 10 8 | num_steps = 5 9 | 10 | w = torch.tensor([0.2, 0.8]) 11 | target = lambda it: torch.multinomial((it * w).softmax(dim=-1), 100, replacement=True) 12 | preds = lambda it: torch.multinomial((it * w).softmax(dim=-1), 100, replacement=True) 13 | 14 | fig, ax = plt.subplots(1, 1, figsize=(6.8, 4.8), dpi=500) 15 | 16 | metric = torchmetrics.Accuracy(task="binary") 17 | values = [] 18 | for step in range(num_steps): 19 | for _ in range(N): 20 | metric.update(preds(step), target(step)) 21 | values.append(metric.compute()) # save value 22 | metric.reset() 23 | metric.plot(values, ax=ax) 24 | fig.show() 25 | -------------------------------------------------------------------------------- /docs/source/pyplots/collection_binary.py: -------------------------------------------------------------------------------- 1 | import matplotlib.pyplot as plt 2 | import torch 3 | 4 | import torchmetrics 5 | 6 | N = 10 7 | num_updates = 10 8 | num_steps = 5 9 | 10 | w = torch.tensor([0.2, 0.8]) 11 | target = lambda it: torch.multinomial((it * w).softmax(dim=-1), 100, replacement=True) 12 | preds = lambda it: torch.multinomial((it * w).softmax(dim=-1), 100, replacement=True) 13 | 14 | collection = torchmetrics.MetricCollection( 15 | torchmetrics.Accuracy(task="binary"), 16 | torchmetrics.Recall(task="binary"), 17 | torchmetrics.Precision(task="binary"), 18 | ) 19 | 20 | fig, ax = plt.subplots(nrows=1, ncols=3, figsize=(6.8, 4.8), dpi=500) 21 | values = [] 22 | for step in range(num_steps): 23 | for _ in range(N): 24 | collection.update(preds(step), target(step)) 25 | values.append(collection.compute()) 26 | collection.reset() 27 | collection.plot(val=values, ax=ax) 28 | fig.tight_layout() 29 | fig.show() 30 | -------------------------------------------------------------------------------- /docs/source/pyplots/collection_binary_together.py: -------------------------------------------------------------------------------- 1 | import matplotlib.pyplot as plt 2 | import torch 3 | 4 | import torchmetrics 5 | 6 | N = 10 7 | num_updates = 10 8 | num_steps = 5 9 | 10 | w = torch.tensor([0.2, 0.8]) 11 | target = lambda it: torch.multinomial((it * w).softmax(dim=-1), 100, replacement=True) 12 | preds = lambda it: torch.multinomial((it * w).softmax(dim=-1), 100, replacement=True) 13 | 14 | collection = torchmetrics.MetricCollection( 15 | torchmetrics.Accuracy(task="binary"), 16 | torchmetrics.Recall(task="binary"), 17 | torchmetrics.Precision(task="binary"), 18 | ) 19 | 20 | values = [] 21 | fig, ax = plt.subplots(1, 1, figsize=(6.8, 4.8), dpi=500) 22 | for step in range(num_steps): 23 | for _ in range(N): 24 | collection.update(preds(step), target(step)) 25 | values.append(collection.compute()) 26 | collection.reset() 27 | collection.plot(val=values, ax=ax, together=True) 28 | fig.tight_layout() 29 | fig.show() 30 | -------------------------------------------------------------------------------- /docs/source/pyplots/confusion_matrix.py: -------------------------------------------------------------------------------- 1 | import matplotlib.pyplot as plt 2 | import torch 3 | 4 | import torchmetrics 5 | 6 | N = 10 7 | num_updates = 10 8 | num_steps = 5 9 | 10 | fig, ax = plt.subplots(1, 1, figsize=(6.8, 4.8), dpi=500) 11 | 12 | metric = torchmetrics.ConfusionMatrix(task="multiclass", num_classes=3) 13 | for _ in range(N): 14 | metric.update(torch.randint(3, (10,)), torch.randint(3, (10,))) 15 | metric.plot(ax=ax) 16 | fig.show() 17 | -------------------------------------------------------------------------------- /docs/source/pyplots/multiclass_accuracy.py: -------------------------------------------------------------------------------- 1 | import matplotlib.pyplot as plt 2 | import torch 3 | 4 | import torchmetrics 5 | 6 | N = 10 7 | num_updates = 10 8 | num_steps = 5 9 | 10 | fig, ax = plt.subplots(1, 1, figsize=(6.8, 4.8), dpi=500) 11 | 12 | metric = torchmetrics.Accuracy(task="multiclass", num_classes=3, average=None) 13 | for _ in range(N): 14 | metric.update(torch.randint(3, (10,)), torch.randint(3, (10,))) 15 | metric.plot(ax=ax) 16 | fig.show() 17 | -------------------------------------------------------------------------------- /docs/source/pyplots/tracker_binary.py: -------------------------------------------------------------------------------- 1 | import matplotlib.pyplot as plt 2 | import torch 3 | 4 | import torchmetrics 5 | 6 | N = 10 7 | num_updates = 10 8 | num_steps = 5 9 | 10 | w = torch.tensor([0.2, 0.8]) 11 | target = lambda it: torch.multinomial((it * w).softmax(dim=-1), 100, replacement=True) 12 | preds = lambda it: (it * torch.randn(100)).sigmoid() 13 | 14 | confmat = torchmetrics.ConfusionMatrix(task="binary") 15 | roc = torchmetrics.ROC(task="binary") 16 | tracker = torchmetrics.wrappers.MetricTracker( 17 | torchmetrics.MetricCollection( 18 | torchmetrics.Accuracy(task="binary"), 19 | torchmetrics.Recall(task="binary"), 20 | torchmetrics.Precision(task="binary"), 21 | confmat, 22 | roc, 23 | ), 24 | maximize=True, 25 | ) 26 | 27 | fig = plt.figure(layout="constrained", figsize=(6.8, 4.8), dpi=500) 28 | ax1 = plt.subplot(2, 2, 1) 29 | ax2 = plt.subplot(2, 2, 2) 30 | ax3 = plt.subplot(2, 2, (3, 4)) 31 | 32 | for step in range(num_steps): 33 | tracker.increment() 34 | for _ in range(N): 35 | tracker.update(preds(step), target(step)) 36 | 37 | # get the results from all steps and extract for confusion matrix and roc 38 | all_results = tracker.compute_all() 39 | confmat.plot(val=all_results[-1]["BinaryConfusionMatrix"], ax=ax1) 40 | roc.plot(all_results[-1]["BinaryROC"], ax=ax2) 41 | 42 | scalar_results = [{k: v for k, v in ar.items() if isinstance(v, torch.Tensor) and v.numel() == 1} for ar in all_results] 43 | 44 | tracker.plot(val=scalar_results, ax=ax3) 45 | fig.show() 46 | -------------------------------------------------------------------------------- /docs/source/references/metric.rst: -------------------------------------------------------------------------------- 1 | .. role:: hidden 2 | :class: hidden-section 3 | 4 | ################### 5 | torchmetrics.Metric 6 | ################### 7 | 8 | The base ``Metric`` class is an abstract base class that are used as the building block for all other Module 9 | metrics. 10 | 11 | .. autoclass:: torchmetrics.Metric 12 | -------------------------------------------------------------------------------- /docs/source/regression/concordance_corr_coef.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Concordance Correlation Coefficient 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Regression 5 | 6 | .. include:: ../links.rst 7 | 8 | ####################### 9 | Concordance Corr. Coef. 10 | ####################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.ConcordanceCorrCoef 16 | :exclude-members: update, compute 17 | 18 | 19 | Functional Interface 20 | ____________________ 21 | 22 | .. autofunction:: torchmetrics.functional.concordance_corrcoef 23 | -------------------------------------------------------------------------------- /docs/source/regression/cosine_similarity.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Cosine Similarity 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Regression 5 | 6 | .. include:: ../links.rst 7 | 8 | ################# 9 | Cosine Similarity 10 | ################# 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.CosineSimilarity 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.cosine_similarity 22 | -------------------------------------------------------------------------------- /docs/source/regression/critical_success_index.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Critical Success Index (CSI) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/image_classification.svg 4 | :tags: Regression 5 | 6 | .. include:: ../links.rst 7 | 8 | ############################ 9 | Critical Success Index (CSI) 10 | ############################ 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.regression.CriticalSuccessIndex 16 | :exclude-members: update, compute 17 | 18 | 19 | Functional Interface 20 | ____________________ 21 | 22 | .. autofunction:: torchmetrics.functional.regression.critical_success_index 23 | -------------------------------------------------------------------------------- /docs/source/regression/crps.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Continuous Ranked Probability Score (CRPS) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/image_classification.svg 4 | :tags: Regression 5 | 6 | .. include:: ../links.rst 7 | 8 | ########################################## 9 | Continuous Ranked Probability Score (CRPS) 10 | ########################################## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.regression.crps.ContinuousRankedProbabilityScore 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.regression.continuous_ranked_probability_score 22 | -------------------------------------------------------------------------------- /docs/source/regression/explained_variance.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Explained Variance 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Regression 5 | 6 | .. include:: ../links.rst 7 | 8 | ################## 9 | Explained Variance 10 | ################## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.ExplainedVariance 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.explained_variance 22 | -------------------------------------------------------------------------------- /docs/source/regression/js_divergence.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Jensen-Shannon Divergence 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Regression 5 | 6 | .. include:: ../links.rst 7 | 8 | ######################### 9 | Jensen-Shannon Divergence 10 | ######################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.regression.JensenShannonDivergence 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.regression.jensen_shannon_divergence 22 | -------------------------------------------------------------------------------- /docs/source/regression/kendall_rank_corr_coef.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Kendall Rank Correlation Coefficient 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Regression 5 | 6 | .. include:: ../links.rst 7 | 8 | ######################## 9 | Kendall Rank Corr. Coef. 10 | ######################## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.KendallRankCorrCoef 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.kendall_rank_corrcoef 22 | -------------------------------------------------------------------------------- /docs/source/regression/kl_divergence.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: KL Divergence 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Regression 5 | 6 | .. include:: ../links.rst 7 | 8 | ############# 9 | KL Divergence 10 | ############# 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.KLDivergence 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.kl_divergence 22 | -------------------------------------------------------------------------------- /docs/source/regression/log_cosh_error.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Log Cosh Error 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Regression 5 | 6 | .. include:: ../links.rst 7 | 8 | ############## 9 | Log Cosh Error 10 | ############## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.LogCoshError 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.log_cosh_error 22 | -------------------------------------------------------------------------------- /docs/source/regression/mean_absolute_error.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Mean Absolute Error (MAE) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Regression 5 | 6 | .. include:: ../links.rst 7 | 8 | ######################### 9 | Mean Absolute Error (MAE) 10 | ######################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.MeanAbsoluteError 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.mean_absolute_error 22 | -------------------------------------------------------------------------------- /docs/source/regression/mean_absolute_percentage_error.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Mean Absolute Percentage Error (MAPE) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Regression 5 | 6 | .. include:: ../links.rst 7 | 8 | ##################################### 9 | Mean Absolute Percentage Error (MAPE) 10 | ##################################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.MeanAbsolutePercentageError 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.mean_absolute_percentage_error 22 | -------------------------------------------------------------------------------- /docs/source/regression/mean_squared_error.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Mean Squared Error (MSE) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Regression 5 | 6 | .. include:: ../links.rst 7 | 8 | ######################## 9 | Mean Squared Error (MSE) 10 | ######################## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.MeanSquaredError 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.mean_squared_error 22 | -------------------------------------------------------------------------------- /docs/source/regression/mean_squared_log_error.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Mean Squared Log Error (MSLE) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Regression 5 | 6 | .. include:: ../links.rst 7 | 8 | ############################# 9 | Mean Squared Log Error (MSLE) 10 | ############################# 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.MeanSquaredLogError 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.mean_squared_log_error 22 | -------------------------------------------------------------------------------- /docs/source/regression/minkowski_distance.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Minkowski Distance 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Regression 5 | 6 | .. include:: ../links.rst 7 | 8 | ################## 9 | Minkowski Distance 10 | ################## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.MinkowskiDistance 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.minkowski_distance 22 | -------------------------------------------------------------------------------- /docs/source/regression/normalized_root_mean_squared_error.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Normalized Root Mean Squared Error (NRMSE) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Regression 5 | 6 | .. include:: ../links.rst 7 | 8 | ########################################## 9 | Normalized Root Mean Squared Error (NRMSE) 10 | ########################################## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.NormalizedRootMeanSquaredError 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.normalized_root_mean_squared_error 22 | -------------------------------------------------------------------------------- /docs/source/regression/pearson_corr_coef.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Pearson Correlation Coefficient 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Regression 5 | 6 | .. include:: ../links.rst 7 | 8 | ################### 9 | Pearson Corr. Coef. 10 | ################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.PearsonCorrCoef 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.pearson_corrcoef 22 | -------------------------------------------------------------------------------- /docs/source/regression/r2_score.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: R2 Score 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Regression 5 | 6 | .. include:: ../links.rst 7 | 8 | ######## 9 | R2 Score 10 | ######## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.R2Score 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.r2_score 22 | -------------------------------------------------------------------------------- /docs/source/regression/rse.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Relative Squared Error 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Regression 5 | 6 | .. include:: ../links.rst 7 | 8 | ############################ 9 | Relative Squared Error (RSE) 10 | ############################ 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.RelativeSquaredError 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.relative_squared_error 22 | -------------------------------------------------------------------------------- /docs/source/regression/spearman_corr_coef.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Spearman Correlation Coefficient 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Regression 5 | 6 | .. include:: ../links.rst 7 | 8 | #################### 9 | Spearman Corr. Coef. 10 | #################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.SpearmanCorrCoef 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.spearman_corrcoef 22 | -------------------------------------------------------------------------------- /docs/source/regression/symmetric_mean_absolute_percentage_error.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Symmetric Mean Absolute Percentage Error (SMAPE) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Regression 5 | 6 | .. include:: ../links.rst 7 | 8 | ################################################ 9 | Symmetric Mean Absolute Percentage Error (SMAPE) 10 | ################################################ 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.SymmetricMeanAbsolutePercentageError 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.symmetric_mean_absolute_percentage_error 22 | -------------------------------------------------------------------------------- /docs/source/regression/tweedie_deviance_score.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Tweedie Deviance Score 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Regression 5 | 6 | .. include:: ../links.rst 7 | 8 | ###################### 9 | Tweedie Deviance Score 10 | ###################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.TweedieDevianceScore 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.tweedie_deviance_score 22 | -------------------------------------------------------------------------------- /docs/source/regression/weighted_mean_absolute_percentage_error.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Weighted Mean Absolute Percentage Error (WMAPE) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Regression 5 | 6 | .. include:: ../links.rst 7 | 8 | ############# 9 | Weighted MAPE 10 | ############# 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.WeightedMeanAbsolutePercentageError 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.weighted_mean_absolute_percentage_error 22 | -------------------------------------------------------------------------------- /docs/source/retrieval/auroc.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Retrieval AUROC 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/text_classification.svg 4 | :tags: Retrieval 5 | 6 | .. include:: ../links.rst 7 | 8 | ############### 9 | Retrieval AUROC 10 | ############### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.retrieval.RetrievalAUROC 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.retrieval.retrieval_auroc 22 | -------------------------------------------------------------------------------- /docs/source/retrieval/fall_out.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Retrieval Fall-Out 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/text_classification.svg 4 | :tags: Retrieval 5 | 6 | .. include:: ../links.rst 7 | 8 | ################## 9 | Retrieval Fall-Out 10 | ################## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.retrieval.RetrievalFallOut 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.retrieval.retrieval_fall_out 22 | -------------------------------------------------------------------------------- /docs/source/retrieval/hit_rate.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Retrieval Hit Rate 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/text_classification.svg 4 | :tags: Retrieval 5 | 6 | .. include:: ../links.rst 7 | 8 | ################## 9 | Retrieval Hit Rate 10 | ################## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.retrieval.RetrievalHitRate 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.retrieval.retrieval_hit_rate 22 | -------------------------------------------------------------------------------- /docs/source/retrieval/map.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Retrieval Mean Average Precision (MAP) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/text_classification.svg 4 | :tags: Retrieval 5 | 6 | .. include:: ../links.rst 7 | 8 | ###################################### 9 | Retrieval Mean Average Precision (MAP) 10 | ###################################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.retrieval.RetrievalMAP 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.retrieval.retrieval_average_precision 22 | -------------------------------------------------------------------------------- /docs/source/retrieval/mrr.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Retrieval Mean Reciprocal Rank (MRR) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/text_classification.svg 4 | :tags: Retrieval 5 | 6 | .. include:: ../links.rst 7 | 8 | #################################### 9 | Retrieval Mean Reciprocal Rank (MRR) 10 | #################################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.retrieval.RetrievalMRR 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.retrieval.retrieval_reciprocal_rank 22 | -------------------------------------------------------------------------------- /docs/source/retrieval/normalized_dcg.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Retrieval Normalized Discounted Cumulative Gain (DCG) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/text_classification.svg 4 | :tags: Retrieval 5 | 6 | .. include:: ../links.rst 7 | 8 | ######################## 9 | Retrieval Normalized DCG 10 | ######################## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.retrieval.RetrievalNormalizedDCG 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.retrieval.retrieval_normalized_dcg 22 | -------------------------------------------------------------------------------- /docs/source/retrieval/precision.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Retrieval Precision 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/text_classification.svg 4 | :tags: Retrieval 5 | 6 | .. include:: ../links.rst 7 | 8 | ################### 9 | Retrieval Precision 10 | ################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.retrieval.RetrievalPrecision 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.retrieval.retrieval_precision 22 | -------------------------------------------------------------------------------- /docs/source/retrieval/precision_recall_curve.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Retrieval Precision Recall Curve 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/text_classification.svg 4 | :tags: Retrieval 5 | 6 | .. include:: ../links.rst 7 | 8 | ################################ 9 | Retrieval Precision Recall Curve 10 | ################################ 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.retrieval.RetrievalPrecisionRecallCurve 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.retrieval.retrieval_precision_recall_curve 22 | -------------------------------------------------------------------------------- /docs/source/retrieval/r_precision.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Retrieval R-Precision 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/text_classification.svg 4 | :tags: Retrieval 5 | 6 | .. include:: ../links.rst 7 | 8 | ##################### 9 | Retrieval R-Precision 10 | ##################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.retrieval.RetrievalRPrecision 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.retrieval.retrieval_r_precision 22 | -------------------------------------------------------------------------------- /docs/source/retrieval/recall.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Retrieval Recall 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/text_classification.svg 4 | :tags: Retrieval 5 | 6 | .. include:: ../links.rst 7 | 8 | ################ 9 | Retrieval Recall 10 | ################ 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.retrieval.RetrievalRecall 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.retrieval.retrieval_recall 22 | -------------------------------------------------------------------------------- /docs/source/segmentation/dice.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Score 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Segmentation 5 | 6 | .. include:: ../links.rst 7 | 8 | ########## 9 | Dice Score 10 | ########## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.segmentation.DiceScore 16 | :noindex: 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.segmentation.dice_score 22 | :noindex: 23 | -------------------------------------------------------------------------------- /docs/source/segmentation/generalized_dice.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Generalized Dice Score 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: Segmentation 5 | 6 | .. include:: ../links.rst 7 | 8 | ###################### 9 | Generalized Dice Score 10 | ###################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.segmentation.GeneralizedDiceScore 16 | :noindex: 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.segmentation.generalized_dice_score 22 | :noindex: 23 | -------------------------------------------------------------------------------- /docs/source/segmentation/hausdorff_distance.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Hausdorff Distance 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/text_classification.svg 4 | :tags: segmentation 5 | 6 | .. include:: ../links.rst 7 | 8 | ################## 9 | Hausdorff Distance 10 | ################## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.segmentation.HausdorffDistance 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.segmentation.hausdorff_distance 22 | -------------------------------------------------------------------------------- /docs/source/segmentation/mean_iou.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Mean Intersection over Union (mIoU) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/object_detection.svg 4 | :tags: Segmentation 5 | 6 | ################################### 7 | Mean Intersection over Union (mIoU) 8 | ################################### 9 | 10 | Module Interface 11 | ________________ 12 | 13 | .. autoclass:: torchmetrics.segmentation.MeanIoU 14 | :exclude-members: update, compute 15 | 16 | Functional Interface 17 | ____________________ 18 | 19 | .. autofunction:: torchmetrics.functional.segmentation.mean_iou 20 | -------------------------------------------------------------------------------- /docs/source/shape/procrustes.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Procrustes Disparity 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg 4 | :tags: shape 5 | 6 | .. include:: ../links.rst 7 | 8 | #################### 9 | Procrustes Disparity 10 | #################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.shape.ProcrustesDisparity 16 | :exclude-members: update, compute 17 | 18 | 19 | Functional Interface 20 | ____________________ 21 | 22 | .. autofunction:: torchmetrics.functional.shape.procrustes_disparity 23 | -------------------------------------------------------------------------------- /docs/source/text/bert_score.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: BERT Score 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/summarization.svg 4 | :tags: Text 5 | 6 | .. include:: ../links.rst 7 | 8 | ########## 9 | BERT Score 10 | ########## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.text.bert.BERTScore 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.text.bert.bert_score 22 | -------------------------------------------------------------------------------- /docs/source/text/bleu_score.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: BLEU Score 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/summarization.svg 4 | :tags: Text 5 | 6 | .. include:: ../links.rst 7 | 8 | ########## 9 | BLEU Score 10 | ########## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.text.BLEUScore 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.text.bleu_score 22 | -------------------------------------------------------------------------------- /docs/source/text/char_error_rate.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Character Error Rate 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/summarization.svg 4 | :tags: Text 5 | 6 | .. include:: ../links.rst 7 | 8 | ############### 9 | Char Error Rate 10 | ############### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.text.CharErrorRate 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.text.char_error_rate 22 | -------------------------------------------------------------------------------- /docs/source/text/chrf_score.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: ChrF Score 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/summarization.svg 4 | :tags: Text 5 | 6 | .. include:: ../links.rst 7 | 8 | ########## 9 | ChrF Score 10 | ########## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.text.CHRFScore 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.text.chrf_score 22 | -------------------------------------------------------------------------------- /docs/source/text/edit.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Edit Distance 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/summarization.svg 4 | :tags: Text 5 | 6 | .. include:: ../links.rst 7 | 8 | ############# 9 | Edit Distance 10 | ############# 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.text.EditDistance 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.text.edit_distance 22 | -------------------------------------------------------------------------------- /docs/source/text/extended_edit_distance.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Extended Edit Distance 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/summarization.svg 4 | :tags: Text 5 | 6 | .. include:: ../links.rst 7 | 8 | ###################### 9 | Extended Edit Distance 10 | ###################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.text.ExtendedEditDistance 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.text.extended_edit_distance 22 | -------------------------------------------------------------------------------- /docs/source/text/infolm.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: InfoLM 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/summarization.svg 4 | :tags: Text 5 | 6 | .. include:: ../links.rst 7 | 8 | ###### 9 | InfoLM 10 | ###### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.text.infolm.InfoLM 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.text.infolm.infolm 22 | -------------------------------------------------------------------------------- /docs/source/text/match_error_rate.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Match Error Rate 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/summarization.svg 4 | :tags: Text 5 | 6 | .. include:: ../links.rst 7 | 8 | ################ 9 | Match Error Rate 10 | ################ 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.text.MatchErrorRate 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.text.match_error_rate 22 | -------------------------------------------------------------------------------- /docs/source/text/perplexity.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Perplexity 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/summarization.svg 4 | :tags: Text 5 | 6 | .. include:: ../links.rst 7 | 8 | ########## 9 | Perplexity 10 | ########## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.text.perplexity.Perplexity 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.text.perplexity.perplexity 22 | -------------------------------------------------------------------------------- /docs/source/text/rouge_score.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: ROUGE Score 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/summarization.svg 4 | :tags: Text 5 | 6 | .. include:: ../links.rst 7 | 8 | ########### 9 | ROUGE Score 10 | ########### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.text.rouge.ROUGEScore 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.text.rouge.rouge_score 22 | -------------------------------------------------------------------------------- /docs/source/text/sacre_bleu_score.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Sacre BLEU Score 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/summarization.svg 4 | :tags: Text 5 | 6 | .. include:: ../links.rst 7 | 8 | ################ 9 | Sacre BLEU Score 10 | ################ 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.text.SacreBLEUScore 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.text.sacre_bleu_score 22 | -------------------------------------------------------------------------------- /docs/source/text/squad.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: SQuAD 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/summarization.svg 4 | :tags: Text 5 | 6 | .. include:: ../links.rst 7 | 8 | ##### 9 | SQuAD 10 | ##### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.text.SQuAD 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.text.squad 22 | -------------------------------------------------------------------------------- /docs/source/text/translation_edit_rate.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Translation Edit Rate (TER) 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/summarization.svg 4 | :tags: Text 5 | 6 | .. include:: ../links.rst 7 | 8 | ########################### 9 | Translation Edit Rate (TER) 10 | ########################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.text.TranslationEditRate 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.text.translation_edit_rate 22 | -------------------------------------------------------------------------------- /docs/source/text/word_error_rate.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Word Error Rate 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/summarization.svg 4 | :tags: Text 5 | 6 | .. include:: ../links.rst 7 | 8 | ############### 9 | Word Error Rate 10 | ############### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.text.WordErrorRate 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.text.word_error_rate 22 | -------------------------------------------------------------------------------- /docs/source/text/word_info_lost.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Word Information Lost 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/summarization.svg 4 | :tags: Text 5 | 6 | .. include:: ../links.rst 7 | 8 | ############### 9 | Word Info. Lost 10 | ############### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.text.WordInfoLost 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.text.word_information_lost 22 | -------------------------------------------------------------------------------- /docs/source/text/word_info_preserved.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Word Information Preserved 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/summarization.svg 4 | :tags: Text 5 | 6 | .. include:: ../links.rst 7 | 8 | #################### 9 | Word Info. Preserved 10 | #################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.text.WordInfoPreserved 16 | :exclude-members: update, compute 17 | 18 | Functional Interface 19 | ____________________ 20 | 21 | .. autofunction:: torchmetrics.functional.text.word_information_preserved 22 | -------------------------------------------------------------------------------- /docs/source/wrappers/bootstrapper.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Bootstrapper 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/graph_classification.svg 4 | :tags: Wrappers 5 | 6 | .. include:: ../links.rst 7 | 8 | ############ 9 | Bootstrapper 10 | ############ 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.wrappers.BootStrapper 16 | -------------------------------------------------------------------------------- /docs/source/wrappers/classwise_wrapper.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Classwise Wrapper 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/graph_classification.svg 4 | :tags: Wrappers 5 | 6 | .. include:: ../links.rst 7 | 8 | ################# 9 | Classwise Wrapper 10 | ################# 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.wrappers.ClasswiseWrapper 16 | -------------------------------------------------------------------------------- /docs/source/wrappers/feature_share.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Feature Sharing 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/graph_classification.svg 4 | :tags: Wrappers 5 | 6 | .. include:: ../links.rst 7 | 8 | ############### 9 | Feature Sharing 10 | ############### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.wrappers.FeatureShare 16 | :exclude-members: update, compute 17 | -------------------------------------------------------------------------------- /docs/source/wrappers/metric_tracker.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Metric Tracker 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/graph_classification.svg 4 | :tags: Wrappers 5 | 6 | .. include:: ../links.rst 7 | 8 | ############## 9 | Metric Tracker 10 | ############## 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.wrappers.MetricTracker 16 | :exclude-members: update, compute 17 | -------------------------------------------------------------------------------- /docs/source/wrappers/min_max.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Min / Max 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/graph_classification.svg 4 | :tags: Wrappers 5 | 6 | .. include:: ../links.rst 7 | 8 | ######### 9 | Min / Max 10 | ######### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.wrappers.MinMaxMetric 16 | -------------------------------------------------------------------------------- /docs/source/wrappers/multi_output_wrapper.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Multi-output Wrapper 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/graph_classification.svg 4 | :tags: Wrappers 5 | 6 | .. include:: ../links.rst 7 | 8 | #################### 9 | Multi-output Wrapper 10 | #################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.wrappers.MultioutputWrapper 16 | -------------------------------------------------------------------------------- /docs/source/wrappers/multi_task_wrapper.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Multi-task Wrapper 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/graph_classification.svg 4 | :tags: Wrappers 5 | 6 | .. include:: ../links.rst 7 | 8 | #################### 9 | Multi-task Wrapper 10 | #################### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.wrappers.MultitaskWrapper 16 | -------------------------------------------------------------------------------- /docs/source/wrappers/running.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Running 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/graph_classification.svg 4 | :tags: Wrappers 5 | 6 | .. include:: ../links.rst 7 | 8 | ####### 9 | Running 10 | ####### 11 | 12 | Module Interface 13 | ________________ 14 | 15 | .. autoclass:: torchmetrics.wrappers.Running 16 | :exclude-members: update, compute 17 | -------------------------------------------------------------------------------- /docs/source/wrappers/transformations.rst: -------------------------------------------------------------------------------- 1 | .. customcarditem:: 2 | :header: Transformations 3 | :image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/graph_classification.svg 4 | :tags: Wrappers 5 | 6 | .. include:: ../links.rst 7 | 8 | ############### 9 | Transformations 10 | ############### 11 | 12 | Transformations allow for modifications to the input a metric receives by wrapping its `pred` and `target` arguments. 13 | Transformations can be implemented by either subclassing the ``MetricInputTransformer`` base class and overriding the ``.transform_pred()`` and/or ``transform_target()`` functions, or by supplying a lambda function via the ``LambdaInputTransformer``. 14 | A ``BinaryTargetTransformer`` which casts target labels to 0/1 given a threshold is provided for convenience. 15 | 16 | Module Interface 17 | ________________ 18 | 19 | .. autoclass:: torchmetrics.wrappers.MetricInputTransformer 20 | 21 | .. autoclass:: torchmetrics.wrappers.LambdaInputTransformer 22 | 23 | .. autoclass:: torchmetrics.wrappers.BinaryTargetTransformer 24 | -------------------------------------------------------------------------------- /examples/README.rst: -------------------------------------------------------------------------------- 1 | TorchMetrics' gallery 2 | ===================== 3 | 4 | Welcome to a comprehensive guide on leveraging TorchMetrics, that facilitates the precise and consistent evaluation of machine learning models. As an integral tool for developers and researchers, TorchMetrics offers an array of metrics critical for assessing model performance across a variety of applications. Whether you are fine-tuning a neural network, comparing model iterations, or tracking performance improvements, this page provides a gallery of real-world applications where Torch Metrics can be effectively implemented. 5 | 6 | By touring through this application gallery, users can gain insights into how TorchMetrics is utilized across different sectors and scale settings, empowering them with the knowledge to implement metrics effectively in their own projects. Whether your interest lies in academic research or commercial product development, the examples provided here will help demonstrate the versatility and utility of Torch Metrics in enhancing machine learning model assessment. 7 | -------------------------------------------------------------------------------- /examples/audio/README.rst: -------------------------------------------------------------------------------- 1 | Audio domain 2 | ============ 3 | 4 | Audio-domain metrics are essential for assessing the performance of models in tasks such as speech recognition, audio classification, and sound event detection. TorchMetrics offers a comprehensive set of specialized metrics tailored for these audio-specific purposes. Utilizing these metrics from TorchMetrics aids in the development of more accurate and resilient audio-based models, ensuring that performance evaluations are both meaningful and directly applicable to real-world audio tasks. 5 | -------------------------------------------------------------------------------- /examples/image/README.rst: -------------------------------------------------------------------------------- 1 | Image domain 2 | ============ 3 | 4 | Image-domain metrics are pivotal for gauging the performance of models in tasks like object detection, and segmentation. TorchMetrics provides a suite of specialized metrics designed for these purposes. Using these image-specific metrics from Torch Metrics helps in developing more precise and robust image-based models, ensuring that performance evaluations are both meaningful and directly applicable to practical vision tasks. 5 | -------------------------------------------------------------------------------- /examples/text/README.rst: -------------------------------------------------------------------------------- 1 | Text domain 2 | ============ 3 | 4 | Text-domain metrics are essential for evaluating the performance of models in tasks like text classification, summarization, and translation. TorchMetrics provides a suite of specialized metrics designed for these purposes. Using these text-specific metrics from Torch Metrics helps in developing more precise and robust text-based models, ensuring that performance evaluations are both meaningful and directly applicable to practical NLP tasks. 5 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | -r requirements/base.txt 2 | -------------------------------------------------------------------------------- /requirements/README.md: -------------------------------------------------------------------------------- 1 | # Project Requirements 2 | 3 | This folder contains all requirements files for the project. The base requirements are located in the `base.txt` file. 4 | Files prefixed with `_` are only meant for development and testing purposes. In general, each subdomain of the project 5 | has a `