INNER CODE UNIT · Python
needs
DeepLabCut/DeepLabCut · deeplabcut/benchmark/__init__.py:31
class needs to be a subclass of the ``benchmark.base.Benchmark``
base class.
In most situations, it will be a subclass of one of the pre-defined
benchmarks in ``benchmark.benchmarks``.
Throws:
``ValueError`` if the decorator is applied to a class that is
not a subclass of ``benchmark.base.Benchmark``.
"""
if not issubclass(cls, Benchmark):
raise ValueError(f"Can only register subclasses of {type(Benchmark)}, but got {cls}.")
__registry.append(cls)
def evaluate(
include_benchmarks: Container[str] = None,
results: ResultCollection = None,