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

Class EvaluationModuleInfoMixin

src/evaluate/module.py:83–146  ·  view source on GitHub ↗

This base class exposes some attributes of EvaluationModuleInfo at the base level of the EvaluationModule for easy access.

Source from the content-addressed store, hash-verified

81
82
83class EvaluationModuleInfoMixin:
84 """This base class exposes some attributes of EvaluationModuleInfo
85 at the base level of the EvaluationModule for easy access.
86 """
87
88 def __init__(self, info: EvaluationModuleInfo):
89 self._module_info = info
90
91 @property
92 def info(self):
93 """:class:`evaluate.EvaluationModuleInfo` object containing all the metadata in the evaluation module."""
94 return self._module_info
95
96 @property
97 def name(self) -> str:
98 return self._module_info.module_name
99
100 @property
101 def experiment_id(self) -> Optional[str]:
102 return self._module_info.experiment_id
103
104 @property
105 def description(self) -> str:
106 return self._module_info.description
107
108 @property
109 def citation(self) -> str:
110 return self._module_info.citation
111
112 @property
113 def features(self) -> Features:
114 return self._module_info.features
115
116 @property
117 def inputs_description(self) -> str:
118 return self._module_info.inputs_description
119
120 @property
121 def homepage(self) -> Optional[str]:
122 return self._module_info.homepage
123
124 @property
125 def license(self) -> str:
126 return self._module_info.license
127
128 @property
129 def codebase_urls(self) -> Optional[List[str]]:
130 return self._module_info.codebase_urls
131
132 @property
133 def reference_urls(self) -> Optional[List[str]]:
134 return self._module_info.reference_urls
135
136 @property
137 def streamable(self) -> bool:
138 return self._module_info.streamable
139
140 @property

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…