Course documentation

End-of-chapter quiz

Join the Hugging Face community

to get started

# End-of-chapter quiz

This chapter covered a lot of ground! Don’t worry if you didn’t grasp all the details; the next chapters will help you understand how things work under the hood.

Before moving on, though, let’s test what you learned in this chapter.

### 2. Suppose you load one of the GLUE tasks as follows:

from datasets import load_dataset

dataset = load_dataset("glue", "mrpc", split="train")

Which of the following commands will produce a random sample of 50 elements from dataset?

### 6. Why does the following code fail?

from datasets import load_dataset

dataset[0]