MCPcopy Create free account
hub / github.com/huggingface/evaluate / __init__

Method __init__

src/evaluate/loading.py:403–416  ·  view source on GitHub ↗
(
        self,
        path: str,
        module_type: str = "metrics",
        download_config: Optional[DownloadConfig] = None,
        download_mode: Optional[DownloadMode] = None,
        dynamic_modules_path: Optional[str] = None,
    )

Source from the content-addressed store, hash-verified

401 """Get the module of a local metric. The metric script is loaded from a local script."""
402
403 def __init__(
404 self,
405 path: str,
406 module_type: str = "metrics",
407 download_config: Optional[DownloadConfig] = None,
408 download_mode: Optional[DownloadMode] = None,
409 dynamic_modules_path: Optional[str] = None,
410 ):
411 self.path = path
412 self.module_type = module_type
413 self.name = Path(path).stem
414 self.download_config = download_config or DownloadConfig()
415 self.download_mode = download_mode
416 self.dynamic_modules_path = dynamic_modules_path
417
418 def get_module(self) -> ImportableModule:
419 # get script and other files

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected