Get startedGet started for free

Loading datasets

After you've chosen your dataset, it's time to load it with the datasets library!

In this case, you'll load the "validation" split of the "TIGER-Lab/MMLU-Pro" dataset, which is a benchmark evaluation dataset.

The load_dataset module from the datasets package is already loaded for you.

This exercise is part of the course

Working with Hugging Face

View Course

Exercise instructions

  • Use the correct function to load the "TIGER-Lab/MMLU-Pro" dataset and specify the "validation" split.

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Load the "validation" split of the TIGER-Lab/MMLU-Pro dataset
my_dataset = ____("____", split="____")

# Display dataset details
print(my_dataset)
Edit and Run Code