Search is not available for this dataset
repo_id stringlengths 12 110 | file_path stringlengths 24 164 | content stringlengths 3 89.3M | __index_level_0__ int64 0 0 |
|---|---|---|---|
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/clustering/test_adjusted_mutual_info_score.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/clustering/inputs.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/clustering/test_mutual_info_score.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/clustering/test_normalized_mutual_info_score.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/clustering/test_calinski_harabasz_score.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/clustering/test_fowlkes_mallows_index.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/clustering/test_utils.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/clustering/test_adjusted_rand_score.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/image/test_tv.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/image/test_fid.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/image/test_kid.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/image/test_uqi.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/image/test_lpips.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/image/test_mifid.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/image/test_vif.py | # Copyright The PyTorch Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/image/test_ms_ssim.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/image/test_perceptual_path_length.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/image/test_rase.py | # Copyright The PyTorch Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/image/test_image_gradients.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/image/test_psnrb.py | # Copyright The PyTorch Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/image/test_rmse_sw.py | # Copyright The PyTorch Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/image/test_sam.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/image/test_d_lambda.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/image/test_psnr.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/image/test_inception.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/image/test_ergas.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/image/__init__.py | # Copyright The PyTorch Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/image/test_ssim.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/deprecations/root_class_imports.py | """Test that domain metric with import from root raises deprecation warning."""
from functools import partial
import pytest
from torchmetrics import (
BLEUScore,
CharErrorRate,
CHRFScore,
ErrorRelativeGlobalDimensionlessSynthesis,
ExtendedEditDistance,
MatchErrorRate,
ModifiedPanopticQualit... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/helpers/utilities.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/helpers/testers.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/helpers/__init__.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/text/test_mer.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/text/test_bleu.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/text/test_cer.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/text/test_wip.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/text/test_bertscore.py | # Copyright The PyTorch Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/text/test_rouge.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/text/test_perplexity.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/text/test_wer.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/text/test_sacre_bleu.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/text/helpers.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/text/test_ter.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/text/test_wil.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/text/test_infolm.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/text/inputs.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/text/test_chrf.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/text/test_edit.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/text/test_squad.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/text/test_eed.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/wrappers/test_minmax.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/wrappers/test_multioutput.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/wrappers/test_tracker.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/wrappers/test_running.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/wrappers/test_classwise.py | import pytest
import torch
from torchmetrics import MetricCollection
from torchmetrics.classification import MulticlassAccuracy, MulticlassF1Score, MulticlassRecall
from torchmetrics.wrappers import ClasswiseWrapper
def test_raises_error_on_wrong_input():
"""Test that errors are raised on wrong input."""
with... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/wrappers/test_multitask.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/wrappers/test_bootstrapping.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/audio/test_si_snr.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/audio/test_snr.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/audio/test_pesq.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/audio/test_srmr.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/audio/test_stoi.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/audio/test_pit.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/audio/test_c_si_snr.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/audio/test_si_sdr.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/audio/test_sa_sdr.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/audio/test_sdr.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/audio/__init__.py | import os
from unittests import _PATH_ROOT
_SAMPLE_AUDIO_SPEECH = os.path.join(_PATH_ROOT, "_data", "audio", "audio_speech.wav")
_SAMPLE_AUDIO_SPEECH_BAB_DB = os.path.join(_PATH_ROOT, "_data", "audio", "audio_speech_bab_0dB.wav")
_SAMPLE_NUMPY_ISSUE_895 = os.path.join(_PATH_ROOT, "_data", "audio", "issue_895.npz")
| 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/retrieval/test_fallout.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/retrieval/helpers.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/retrieval/test_r_precision.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/retrieval/inputs.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/retrieval/test_precision.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/retrieval/test_map.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/retrieval/test_recall.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/retrieval/test_precision_recall_curve.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/retrieval/test_ndcg.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/retrieval/test_mrr.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/retrieval/test_hit_rate.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/multimodal/test_clip_score.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics/tests/unittests | public_repos/torchmetrics/tests/unittests/multimodal/test_clip_iqa.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics | public_repos/torchmetrics/examples/rouge_score-own_normalizer_and_tokenizer.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics | public_repos/torchmetrics/examples/detection_map.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics | public_repos/torchmetrics/examples/bert_score-own_model.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics | public_repos/torchmetrics/examples/plotting.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 0 |
public_repos/torchmetrics | public_repos/torchmetrics/docs/make.bat | @ECHO OFF
pushd %~dp0
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set SOURCEDIR=source
set BUILDDIR=build
if "%1" == "" goto help
%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
echo.
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
... | 0 |
public_repos/torchmetrics | public_repos/torchmetrics/docs/rtfd-build.sh | # building for PRs and skip stable and latest states
if ! [ $READTHEDOCS_VERSION == "latest" -o $READTHEDOCS_VERSION == "stable" ];
then
cd ./docs ;
export SPHINX_FETCH_ASSETS=0 ;
make html --jobs $(nproc) ;
ls -lh build
else
echo "Void build... :-]" ;
mkdir -p ./docs/build/html
cp ./docs/r... | 0 |
public_repos/torchmetrics | public_repos/torchmetrics/docs/redirect.html | <!doctype html>
<html>
<head>
<meta http-equiv="refresh" content="0; url='https://lightning.ai/docs/torchmetrics/'" />
</head>
<body>
<p>You will be redirected to TorchMetrics docs.</p>
</body>
</html>
| 0 |
public_repos/torchmetrics | public_repos/torchmetrics/docs/Makefile | # Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS = -W
SPHINXBUILD = sphinx-build
SOURCEDIR = source
BUILDDIR = build
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)... | 0 |
public_repos/torchmetrics | public_repos/torchmetrics/docs/.build_docs.sh | make clean
make html --debug --jobs "$(nproc)"
| 0 |
public_repos/torchmetrics | public_repos/torchmetrics/docs/README.md | # TorchMetrics Docs
We are using Sphinx with Napoleon extension.
Moreover, we set Google style to follow with type convention.
- [Napoleon formatting with Google style](https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html)
- [ReStructured Text (reST)](https://docs.pylonsproject.org/projects/doc... | 0 |
public_repos/torchmetrics/docs | public_repos/torchmetrics/docs/source/links.rst |
.. _scikit-learn's implementation of SMAPE: https://scikit-learn.org/stable/modules/generated/sklearn.metrics.mean_absolute_percentage_error.html
.. _scikit-learn's implementation of MAPE: https://scikit-learn.org/stable/modules/generated/sklearn.metrics.mean_absolute_percentage_error.html
.. _Mean Average Precision: ... | 0 |
public_repos/torchmetrics/docs | public_repos/torchmetrics/docs/source/governance.rst | .. _governance:
TorchMetrics Governance
#######################
This document describes governance processes we follow in developing TorchMetrics.
Persons of Interest
*******************
Leads
-----
- Nicki Skafte (`skaftenicki <https://github.com/SkafteNicki>`_)
- Jirka Borovec (`Borda <https://github.com/Borda>`_... | 0 |
public_repos/torchmetrics/docs | public_repos/torchmetrics/docs/source/all-metrics.rst | .. this page is referring other pages with `customcarditem`; bypass hierarchy is patch with redirect
All TorchMetrics
================
.. tutoriallist::
| 0 |
public_repos/torchmetrics/docs | public_repos/torchmetrics/docs/source/index.rst | .. TorchMetrics documentation master file.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to TorchMetrics
=======================
.. raw:: html
<div class="row" style='font-size: 14px'>
<div class='col-md-12'>
TorchMetrics is a ... | 0 |
public_repos/torchmetrics/docs | public_repos/torchmetrics/docs/source/conf.py | #
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup --------------------------------------------------------------
# If extensions (or ... | 0 |
public_repos/torchmetrics/docs/source | public_repos/torchmetrics/docs/source/pairwise/manhattan_distance.rst | .. customcarditem::
:header: Pairwise Manhattan Distance
:image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/translation.svg
:tags: Pairwise
.. include:: ../links.rst
##################
Manhattan Distance
##################
Functional Interface
____________________
.. autofunction:: torchmetri... | 0 |
public_repos/torchmetrics/docs/source | public_repos/torchmetrics/docs/source/pairwise/minkowski_distance.rst | .. customcarditem::
:header: Pairwise Minkowski Distance
:image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/translation.svg
:tags: Pairwise
.. include:: ../links.rst
##################
Minkowski Distance
##################
Functional Interface
____________________
.. autofunction:: torchmetri... | 0 |
public_repos/torchmetrics/docs/source | public_repos/torchmetrics/docs/source/pairwise/euclidean_distance.rst | .. customcarditem::
:header: Pairwise Euclidean Distance
:image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/translation.svg
:tags: Pairwise
.. include:: ../links.rst
##################
Euclidean Distance
##################
Functional Interface
____________________
.. autofunction:: torchmetri... | 0 |
public_repos/torchmetrics/docs/source | public_repos/torchmetrics/docs/source/pairwise/linear_similarity.rst | .. customcarditem::
:header: Pairwise Linear Similarity
:image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/translation.svg
:tags: Pairwise
.. include:: ../links.rst
#################
Linear Similarity
#################
Functional Interface
____________________
.. autofunction:: torchmetrics.f... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.