blob: e91f22df7546c85c7c665fa5d0db446b84193ae3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# Copyright 2023-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{13..14} )
DISTUTILS_SINGLE_IMPL=1
inherit distutils-r1
DESCRIPTION="makes evaluating, comparing models and reporting their performance easier"
HOMEPAGE="
https://pypi.org/project/evaluate/
https://github.com/huggingface/evaluate
"
SRC_URI="https://github.com/huggingface/${PN}/archive/refs/tags/v${PV}.tar.gz
-> ${P}.gh.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+evaluator +template +torch"
RDEPEND="
$(python_gen_cond_dep '
dev-python/dill[${PYTHON_USEDEP}]
dev-python/fsspec[${PYTHON_USEDEP}]
dev-python/matplotlib[${PYTHON_USEDEP}]
dev-python/multiprocess[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
>=dev-python/pandas-3[${PYTHON_USEDEP}]
dev-python/pyarrow[${PYTHON_USEDEP},parquet]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/tqdm[${PYTHON_USEDEP}]
dev-python/unidecode[${PYTHON_USEDEP}]
dev-python/xxhash[${PYTHON_USEDEP}]
evaluator? (
dev-python/scipy[${PYTHON_USEDEP}]
)
template? (
dev-util/cookiecutter[${PYTHON_USEDEP}]
)
')
sci-ml/datasets[${PYTHON_SINGLE_USEDEP}]
sci-ml/huggingface_hub[${PYTHON_SINGLE_USEDEP}]
evaluator? (
sci-ml/transformers[${PYTHON_SINGLE_USEDEP}]
)
torch? (
sci-ml/caffe2[${PYTHON_SINGLE_USEDEP},distributed]
sci-ml/pytorch[${PYTHON_SINGLE_USEDEP}]
)
"
BDEPEND="test? (
$(python_gen_cond_dep '
dev-python/absl-py[${PYTHON_USEDEP}]
sci-ml/jiwer[${PYTHON_USEDEP}]
sci-ml/seqeval[${PYTHON_USEDEP}]
')
)"
PATCHES=(
"${FILESDIR}"/${PN}-0.4.0-tests.patch
"${FILESDIR}"/${P}-pandas3.patch
)
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
src_test() {
local EPYTEST_DESELECT=(
tests/test_evaluation_suite.py::TestEvaluationSuite::test_empty_suite
tests/test_evaluation_suite.py::TestEvaluationSuite::test_running_evaluation_suite
tests/test_evaluator.py::TestAudioClassificationEvaluator::test_class_init
tests/test_evaluator.py::TestAudioClassificationEvaluator::test_overwrite_default_metric
tests/test_evaluator.py::TestAudioClassificationEvaluator::test_pipe_init
tests/test_evaluator.py::TestAudioClassificationEvaluator::test_raw_pipe_init
tests/test_metric.py::TestEvaluationcombined_evaluation::test_modules_from_string_poslabel
)
distutils-r1_src_test
}
|