MCPcopy Create free account
hub / github.com/algorithmicsuperintelligence/optillm / load_source_dataset

Function load_source_dataset

scripts/gen_optillmbench.py:156–166  ·  view source on GitHub ↗

Load a source dataset with error handling

(config: Dict[str, Any])

Source from the content-addressed store, hash-verified

154 }
155
156def load_source_dataset(config: Dict[str, Any]) -> datasets.Dataset:
157 """Load a source dataset with error handling"""
158 try:
159 dataset = datasets.load_dataset(
160 config["name"],
161 config.get("subset")
162 )
163 return dataset
164 except Exception as e:
165 print(f"Error loading dataset {config['name']}: {str(e)}")
166 return None
167
168def create_benchmark_dataset() -> Dataset:
169 """Create the complete benchmark dataset"""

Callers 1

create_benchmark_datasetFunction · 0.85

Calls 1

load_datasetMethod · 0.45

Tested by

no test coverage detected