From a36a5b21722bdd5a30effd389929f6d2a9d7eb99 Mon Sep 17 00:00:00 2001 From: Jirka Date: Sun, 20 Mar 2022 02:48:48 +0100 Subject: [PATCH] missing copy(R) (cherry picked from commit 1f61410d4140f7bf093d7d6746b409eaf5898d28) --- tests/helpers/__init__.py | 13 +++++++++++++ tests/helpers/reference_metrics.py | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/tests/helpers/__init__.py b/tests/helpers/__init__.py index d7e86d30644..e9432568e45 100644 --- a/tests/helpers/__init__.py +++ b/tests/helpers/__init__.py @@ -1,3 +1,16 @@ +# 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 in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import operator import random diff --git a/tests/helpers/reference_metrics.py b/tests/helpers/reference_metrics.py index f510c2cf6a2..373b978d066 100644 --- a/tests/helpers/reference_metrics.py +++ b/tests/helpers/reference_metrics.py @@ -1,3 +1,16 @@ +# 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 in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. """File for non sklearn metrics that are to be used for reference for tests.""" from typing import Optional, Union