torchmetrics
Machine learning metrics for distributed, scalable PyTorch applications.
File Explorer
- devcontainer.json
- Dockerfile
- action.yml
- action.yml
- bug_report.md
- config.yml
- documentation.md
- feature_request.md
- _focus-diff.yml
- ci-checks.yml
- ci-integrate.yml
- ci-tests.yml
- clear-cache.yml
- cmd-help.yml
- cmd-rebase.yml
- docker-build.yml
- docs-build.yml
- greetings.yml
- publish-pkg.yml
- slash-cmd-dispatch.yml
- assistant.py
- CODE_OF_CONDUCT.md
- CODEOWNERS
- CONTRIBUTING.md
- dependabot.yml
- labeling-config.yml
- markdown-links-config.json
- mergify.yml
- PULL_REQUEST_TEMPLATE.md
- stale.yml
- integrations.yml
- unittests.yml
- bert_score-own_model.py
- detection_map.py
- plotting.py
- rouge_score-own_normalizer_and_tokenizer.py
- Dockerfile
- README.md
- paper.bib
- paper.md
- custom.css
- icon.png
- icon.svg
- logo.png
- logo.svg
- logo_light.svg
- plot_example.png
- copybutton.js
- module.rst
- classtemplate.rst
- layout.html
- theme_variables.jinja
- cat.rst
- max.rst
- mean.rst
- min.rst
- running_mean.rst
- running_sum.rst
- sum.rst
- complex_scale_invariant_signal_noise_ratio.rst
- deep_noise_suppression_mean_opinion_score.rst
- non_intrusive_speech_quality_assessment.rst
- perceptual_evaluation_speech_quality.rst
- permutation_invariant_training.rst
- scale_invariant_signal_distortion_ratio.rst
- scale_invariant_signal_noise_ratio.rst
- short_time_objective_intelligibility.rst
- signal_distortion_ratio.rst
- signal_noise_ratio.rst
- source_aggregated_signal_distortion_ratio.rst
- speech_reverberation_modulation_energy_ratio.rst
- accuracy.rst
- auroc.rst
- average_precision.rst
- calibration_error.rst
- cohen_kappa.rst
- confusion_matrix.rst
- coverage_error.rst
- eer.rst
- exact_match.rst
- f1_score.rst
- fbeta_score.rst
- group_fairness.rst
- hamming_distance.rst
- hinge_loss.rst
- jaccard_index.rst
- label_ranking_average_precision.rst
- label_ranking_loss.rst
- logauc.rst
- matthews_corr_coef.rst
- negative_predictive_value.rst
- precision.rst
- precision_at_fixed_recall.rst
- precision_recall_curve.rst
- recall.rst
- recall_at_fixed_precision.rst
- roc.rst
- sensitivity_at_specificity.rst
- specificity.rst
- specificity_at_sensitivity.rst
- stat_scores.rst
- adjusted_mutual_info_score.rst
- adjusted_rand_score.rst
- calinski_harabasz_score.rst
- cluster_accuracy.rst
- completeness_score.rst
- davies_bouldin_score.rst
- dunn_index.rst
- fowlkes_mallows_index.rst
- homogeneity_score.rst
- mutual_info_score.rst
- normalized_mutual_info_score.rst
- rand_score.rst
- v_measure_score.rst
- complete_intersection_over_union.rst
- distance_intersection_over_union.rst
- generalized_intersection_over_union.rst
- intersection_over_union.rst
- mean_average_precision.rst
- modified_panoptic_quality.rst
- panoptic_quality.rst
- arniqa.rst
- dists.rst
- error_relative_global_dimensionless_synthesis.rst
- frechet_inception_distance.rst
- image_gradients.rst
- inception_score.rst
- kernel_inception_distance.rst
- learned_perceptual_image_patch_similarity.rst
- mifid.rst
- multi_scale_structural_similarity.rst
- peak_signal_noise_ratio.rst
- peak_signal_to_noise_with_block.rst
- perceptual_path_length.rst
- quality_with_no_reference.rst
- relative_average_spectral_error.rst
- root_mean_squared_error_using_sliding_window.rst
- spatial_correlation_coefficient.rst
- spatial_distortion_index.rst
- spectral_angle_mapper.rst
- spectral_distortion_index.rst
- structural_similarity.rst
- total_variation.rst
- universal_image_quality_index.rst
- visual_information_fidelity.rst
- clip_iqa.rst
- clip_score.rst
- lve.rst
- cramers_v.rst
- fleiss_kappa.rst
- pearsons_contingency_coefficient.rst
- theils_u.rst
- tschuprows_t.rst
- implement.rst
- lightning.rst
- overview.rst
- plotting.rst
- quickstart.rst
- cosine_similarity.rst
- euclidean_distance.rst
- linear_similarity.rst
- manhattan_distance.rst
- minkowski_distance.rst
- binary_accuracy.py
- binary_accuracy_multistep.py
- collection_binary.py
- collection_binary_together.py
- confusion_matrix.py
- multiclass_accuracy.py
- tracker_binary.py
- metric.rst
- utilities.rst
- concordance_corr_coef.rst
- cosine_similarity.rst
- critical_success_index.rst
- crps.rst
- explained_variance.rst
- js_divergence.rst
- kendall_rank_corr_coef.rst
- kl_divergence.rst
- log_cosh_error.rst
- mean_absolute_error.rst
- mean_absolute_percentage_error.rst
- mean_squared_error.rst
- mean_squared_log_error.rst
- minkowski_distance.rst
- normalized_root_mean_squared_error.rst
- pearson_corr_coef.rst
- r2_score.rst
- rse.rst
- spearman_corr_coef.rst
- symmetric_mean_absolute_percentage_error.rst
- tweedie_deviance_score.rst
- weighted_mean_absolute_percentage_error.rst
- auroc.rst
- fall_out.rst
- hit_rate.rst
- map.rst
- mrr.rst
- normalized_dcg.rst
- precision.rst
- precision_recall_curve.rst
- r_precision.rst
- recall.rst
- dice.rst
- generalized_dice.rst
- hausdorff_distance.rst
- mean_iou.rst
- procrustes.rst
- bert_score.rst
- bleu_score.rst
- char_error_rate.rst
- chrf_score.rst
- edit.rst
- extended_edit_distance.rst
- infolm.rst
- match_error_rate.rst
- perplexity.rst
- rouge_score.rst
- sacre_bleu_score.rst
- squad.rst
- translation_edit_rate.rst
- word_error_rate.rst
- word_info_lost.rst
- word_info_preserved.rst
- vmaf.rst
- bootstrapper.rst
- classwise_wrapper.rst
- feature_share.rst
- metric_tracker.rst
- min_max.rst
- multi_output_wrapper.rst
- multi_task_wrapper.rst
- running.rst
- transformations.rst
- all-metrics.rst
- conf.py
- governance.rst
- index.rst
- links.rst
- .build_docs.sh
- .readthedocs.yaml
- make.bat
- Makefile
- README.md
- redirect.html
- rtfd-build.sh
- pesq.py
- README.rst
- signal_to_noise_ratio.py
- text_to_speech.py
- clip_score.py
- README.rst
- spatial_correlation_coef.py
- bertscore.py
- perplexity.py
- README.rst
- rouge.py
- README.rst
- _ci.txt
- _devel.txt
- _docs.txt
- _doctest.txt
- _integrate.txt
- _tests.txt
- audio.txt
- audio_test.txt
- base.txt
- classification_test.txt
- clustering.txt
- clustering_test.txt
- debug.txt
- detection.txt
- detection_test.txt
- image.txt
- image_test.txt
- integrate.txt
- multimodal.txt
- nominal_test.txt
- README.md
- regression_test.txt
- segmentation_test.txt
- text.txt
- text_test.txt
- typing.txt
- video.txt
- visual.txt
- __init__.py
- _deprecated.py
- dnsmos.py
- nisqa.py
- pesq.py
- pit.py
- sdr.py
- snr.py
- srmr.py
- stoi.py
- __init__.py
- accuracy.py
- auroc.py
- average_precision.py
- base.py
- calibration_error.py
- cohen_kappa.py
- confusion_matrix.py
- eer.py
- exact_match.py
- f_beta.py
- group_fairness.py
- hamming.py
- hinge.py
- jaccard.py
- logauc.py
- matthews_corrcoef.py
- negative_predictive_value.py
- precision_fixed_recall.py
- precision_recall.py
- precision_recall_curve.py
- ranking.py
- recall_fixed_precision.py
- roc.py
- sensitivity_specificity.py
- specificity.py
- specificity_sensitivity.py
- stat_scores.py
- __init__.py
- adjusted_mutual_info_score.py
- adjusted_rand_score.py
- calinski_harabasz_score.py
- cluster_accuracy.py
- davies_bouldin_score.py
- dunn_index.py
- fowlkes_mallows_index.py
- homogeneity_completeness_v_measure.py
- mutual_info_score.py
- normalized_mutual_info_score.py
- rand_score.py
- __init__.py
- _deprecated.py
- _mean_ap.py
- ciou.py
- diou.py
- giou.py
- helpers.py
- iou.py
- mean_ap.py
- panoptic_qualities.py
- __init__.py
- _deprecated.py
- dnsmos.py
- nisqa.py
- pesq.py
- pit.py
- sdr.py
- snr.py
- srmr.py
- stoi.py
- __init__.py
- accuracy.py
- auroc.py
- average_precision.py
- calibration_error.py
- cohen_kappa.py
- confusion_matrix.py
- eer.py
- exact_match.py
- f_beta.py
- group_fairness.py
- hamming.py
- hinge.py
- jaccard.py
- logauc.py
- matthews_corrcoef.py
- negative_predictive_value.py
- precision_fixed_recall.py
- precision_recall.py
- precision_recall_curve.py
- ranking.py
- recall_fixed_precision.py
- roc.py
- sensitivity_specificity.py
- specificity.py
- specificity_sensitivity.py
- stat_scores.py
- __init__.py
- adjusted_mutual_info_score.py
- adjusted_rand_score.py
- calinski_harabasz_score.py
- cluster_accuracy.py
- davies_bouldin_score.py
- dunn_index.py
- fowlkes_mallows_index.py
- homogeneity_completeness_v_measure.py
- mutual_info_score.py
- normalized_mutual_info_score.py
- rand_score.py
- utils.py
- __init__.py
- _deprecated.py
- _panoptic_quality_common.py
- ciou.py
- diou.py
- giou.py
- iou.py
- map.py
- panoptic_qualities.py
- weights.pt
- alex.pth
- squeeze.pth
- vgg.pth
- __init__.py
- _deprecated.py
- arniqa.py
- d_lambda.py
- d_s.py
- dists.py
- ergas.py
- gradients.py
- lpips.py
- perceptual_path_length.py
- psnr.py
- psnrb.py
- qnr.py
- rase.py
- rmse_sw.py
- sam.py
- scc.py
- ssim.py
- tv.py
- uqi.py
- utils.py
- vif.py
- __init__.py
- clip_iqa.py
- clip_score.py
- lve.py
- __init__.py
- cramers.py
- fleiss_kappa.py
- pearson.py
- theils_u.py
- tschuprows.py
- utils.py
- __init__.py
- cosine.py
- euclidean.py
- helpers.py
- linear.py
- manhattan.py
- minkowski.py
- __init__.py
- concordance.py
- cosine_similarity.py
- crps.py
- csi.py
- explained_variance.py
- js_divergence.py
- kendall.py
- kl_divergence.py
- log_cosh.py
- log_mse.py
- mae.py
- mape.py
- minkowski.py
- mse.py
- nrmse.py
- pearson.py
- r2.py
- rse.py
- spearman.py
- symmetric_mape.py
- tweedie_deviance.py
- utils.py
- wmape.py
- __init__.py
- _deprecated.py
- auroc.py
- average_precision.py
- fall_out.py
- hit_rate.py
- ndcg.py
- precision.py
- precision_recall_curve.py
- r_precision.py
- recall.py
- reciprocal_rank.py
- __init__.py
- dice.py
- generalized_dice.py
- hausdorff_distance.py
- mean_iou.py
- utils.py
- __init__.py
- procrustes.py
- __init__.py
- _deprecated.py
- bert.py
- bleu.py
- cer.py
- chrf.py
- edit.py
- eed.py
- helper.py
- helper_embedding_metric.py
- infolm.py
- mer.py
- perplexity.py
- rouge.py
- sacre_bleu.py
- squad.py
- ter.py
- wer.py
- wil.py
- wip.py
- __init__.py
- vmaf.py
- __init__.py
- __init__.py
- _deprecated.py
- arniqa.py
- d_lambda.py
- d_s.py
- dists.py
- ergas.py
- fid.py
- inception.py
- kid.py
- lpip.py
- mifid.py
- perceptual_path_length.py
- psnr.py
- psnrb.py
- qnr.py
- rase.py
- rmse_sw.py
- sam.py
- scc.py
- ssim.py
- tv.py
- uqi.py
- vif.py
- __init__.py
- clip_iqa.py
- clip_score.py
- lve.py
- __init__.py
- cramers.py
- fleiss_kappa.py
- pearson.py
- theils_u.py
- tschuprows.py
- __init__.py
- concordance.py
- cosine_similarity.py
- crps.py
- csi.py
- explained_variance.py
- js_divergence.py
- kendall.py
- kl_divergence.py
- log_cosh.py
- log_mse.py
- mae.py
- mape.py
- minkowski.py
- mse.py
- nrmse.py
- pearson.py
- r2.py
- rse.py
- spearman.py
- symmetric_mape.py
- tweedie_deviance.py
- wmape.py
- __init__.py
- _deprecated.py
- auroc.py
- average_precision.py
- base.py
- fall_out.py
- hit_rate.py
- ndcg.py
- precision.py
- precision_recall_curve.py
- r_precision.py
- recall.py
- reciprocal_rank.py
- __init__.py
- dice.py
- generalized_dice.py
- hausdorff_distance.py
- mean_iou.py
- __init__.py
- procrustes.py
- __init__.py
- _deprecated.py
- bert.py
- bleu.py
- cer.py
- chrf.py
- edit.py
- eed.py
- infolm.py
- mer.py
- perplexity.py
- rouge.py
- sacre_bleu.py
- squad.py
- ter.py
- wer.py
- wil.py
- wip.py
- __init__.py
- checks.py
- compute.py
- data.py
- distributed.py
- enums.py
- exceptions.py
- imports.py
- plot.py
- prints.py
- __init__.py
- vmaf.py
- __init__.py
- abstract.py
- bootstrapping.py
- classwise.py
- feature_share.py
- minmax.py
- multioutput.py
- multitask.py
- running.py
- tracker.py
- transformations.py
- __about__.py
- __init__.py
- aggregation.py
- collections.py
- metric.py
- py.typed
- conftest.py
- __init__.py
- boring_model.py
- __init__.py
- conftest.py
- test_lightning.py
- __init__.py
- testers.py
- wrappers.py
- __init__.py
- test_c_si_snr.py
- test_dnsmos.py
- test_nisqa.py
- test_pesq.py
- test_pit.py
- test_sa_sdr.py
- test_sdr.py
- test_si_sdr.py
- test_si_snr.py
- test_snr.py
- test_srmr.py
- test_stoi.py
- __init__.py
- test_aggregation.py
- test_collections.py
- test_composition.py
- test_ddp.py
- test_hashing.py
- test_metric.py
- test_saving_loading.py
- __init__.py
- _inputs.py
- test_accuracy.py
- test_auc.py
- test_auroc.py
- test_average_precision.py
- test_calibration_error.py
- test_cohen_kappa.py
- test_confusion_matrix.py
- test_eer.py
- test_exact_match.py
- test_f_beta.py
- test_group_fairness.py
- test_hamming_distance.py
- test_hinge.py
- test_jaccard.py
- test_logauc.py
- test_matthews_corrcoef.py
- test_negative_predictive_value.py
- test_precision_fixed_recall.py
- test_precision_recall.py
- test_precision_recall_curve.py
- test_ranking.py
- test_recall_fixed_precision.py
- test_roc.py
- test_sensitivity_specificity.py
- test_specificity.py
- test_specificity_sensitivity.py
- test_stat_scores.py
- __init__.py
- _inputs.py
- test_adjusted_mutual_info_score.py
- test_adjusted_rand_score.py
- test_calinski_harabasz_score.py
- test_cluster_accuracy.py
- test_davies_bouldin_score.py
- test_dunn_index.py
- test_fowlkes_mallows_index.py
- test_homogeneity_completeness_v_measure.py
- test_mutual_info_score.py
- test_normalized_mutual_info_score.py
- test_rand_score.py
- test_utils.py
- __init__.py
- root_class_imports.py
- __init__.py
- test_intersection.py
- test_map.py
- test_modified_panoptic_quality.py
- test_panoptic_quality.py
- __init__.py
- test_arniqa.py
- test_csi.py
- test_d_lambda.py
- test_d_s.py
- test_dists.py
- test_ergas.py
- test_fid.py
- test_image_gradients.py
- test_inception.py
- test_kid.py
- test_lpips.py
- test_mifid.py
- test_ms_ssim.py
- test_perceptual_path_length.py
- test_psnr.py
- test_psnrb.py
- test_qnr.py
- test_rase.py
- test_rmse_sw.py
- test_sam.py
- test_scc.py
- test_ssim.py
- test_tv.py
- test_uqi.py
- test_vif.py
- __init__.py
- test_clip_iqa.py
- test_clip_score.py
- test_lve.py
- __init__.py
- test_cramers.py
- test_fleiss_kappa.py
- test_pearson.py
- test_theils_u.py
- test_tschuprows.py
- __init__.py
- test_pairwise_distance.py
- __init__.py
- test_concordance.py
- test_cosine_similarity.py
- test_crps.py
- test_explained_variance.py
- test_js_divergence.py
- test_kendall.py
- test_kl_divergence.py
- test_log_cosh_error.py
- test_mean_error.py
- test_minkowski_distance.py
- test_pearson.py
- test_r2.py
- test_rse.py
- test_spearman.py
- test_tweedie_deviance.py
- __init__.py
- _inputs.py
- helpers.py
- test_auroc.py
- test_fallout.py
- test_hit_rate.py
- test_map.py
- test_mrr.py
- test_ndcg.py
- test_precision.py
- test_precision_recall_curve.py
- test_r_precision.py
- test_recall.py
- __init__.py
- inputs.py
- test_dice.py
- test_generalized_dice_score.py
- test_hausdorff_distance.py
- test_mean_iou.py
- test_utils.py
- __init__.py
- test_procrustes.py
- __init__.py
- _helpers.py
- _inputs.py
- test_bertscore.py
- test_bleu.py
- test_cer.py
- test_chrf.py
- test_edit.py
- test_eed.py
- test_infolm.py
- test_mer.py
- test_perplexity.py
- test_rouge.py
- test_sacre_bleu.py
- test_squad.py
- test_ter.py
- test_wer.py
- test_wil.py
- test_wip.py
- test_plot.py
- test_utilities.py
- __init__.py
- test_vmaf.py
- __init__.py
- test_bootstrapping.py
- test_classwise.py
- test_feature_share.py
- test_minmax.py
- test_multioutput.py
- test_multitask.py
- test_running.py
- test_tracker.py
- test_transformations.py
- __init__.py
- conftest.py
- README.md
- .codecov.yml
- .gitignore
- .pre-commit-config.yaml
- CHANGELOG.md
- CITATION.cff
- LICENSE
- Makefile
- MANIFEST.in
- pyproject.toml
- README.md
- requirements.txt
- setup.py
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
conda install
View Details ▼
conda install
Install packages into an existing conda environment.
conda install {{package1 package2 ...}}
Install one or more package into the currently active conda environment:
conda install {{[-c|--channel]}} conda-forge {{package}}
Install a single package into the currently active conda environment using channel conda-forge:
conda install {{[-c|--channel]}} conda-forge --override-channels {{package}}
Install a single package into the currently active conda environment using channel conda-forge and ignoring other channels:
pip install
View Details ▼
pip install
Install Python packages.
pip install {{package1 package2 ...}}
Install one or more packages:
pip install {{package1 package2 ...}} {{[-U|--upgrade]}}
Upgrade all specified packages to the latest version, installing any that are not already present:
pip install {{package}}=={{version}}
Install a specific version of a package:
uv add
View Details ▼
uv add
Add package dependencies to the `pyproject.toml` file.
Packages are specified according to <https://peps.python.org/pep-0508/>.
uv add {{package}}
Add the latest version of a package:
uv add {{package1 package2 ...}}
Add multiple packages:
uv add {{package>=1.2.3}}
Add a package with a version requirement:
