Methods for listing and loading evaluation modules:
( module_type = None include_community = True with_details = False )
Parameters
str
, optional, defaults to None
) —
Type of evaluation modules to list. Has to be one of 'metric'
, 'comparison'
, or 'measurement'
. If None
, all types are listed. bool
, optional, defaults to True
) —
Include community modules in the list. bool
, optional, defaults to False
) —
Return the full details on the metrics instead of only the ID. List all evaluation modules available on the Hugging Face Hub.
( path: str config_name: Optional = None module_type: Optional = None process_id: int = 0 num_process: int = 1 cache_dir: Optional = None experiment_id: Optional = None keep_in_memory: bool = False download_config: Optional = None download_mode: Optional = None revision: Union = None **init_kwargs )
Parameters
str
) —
Path to the evaluation processing script with the evaluation builder. Can be either:'./metrics/rouge'
or './metrics/rouge/rouge.py'
'rouge'
or 'bleu'
that are in either 'metrics/'
,
'comparisons/'
, or 'measurements/'
depending on the provided module_type
str
, optional) —
Selecting a configuration for the metric (e.g. the GLUE metric has a configuration for each subset). str
, default 'metric'
) —
Type of evaluation module, can be one of 'metric'
, 'comparison'
, or 'measurement'
. int
, optional) —
For distributed evaluation: id of the process. int
, optional) —
For distributed evaluation: total number of processes. str
, optional) —
Path to store the temporary predictions and references (default to ~/.cache/huggingface/evaluate/
). str
) —
A specific experiment id. This is used if several distributed evaluations share the same file system.
This is useful to compute metrics in distributed setups (in particular non-additive metrics like F1). bool
) —
Whether to store the temporary results in memory (defaults to False
). ~evaluate.DownloadConfig
, optional) —
Specific download configuration parameters. DownloadMode
, defaults to REUSE_DATASET_IF_EXISTS
) —
Download/generate mode. Union[str, evaluate.Version]
, optional) —
If specified, the module will be loaded from the datasets repository
at this version. By default it is set to the local version of the lib. Specifying a version that is different from
your local version of the lib might cause compatibility issues. Load a EvaluationModule.