Quiz Space

Deep Learning Practice · Quiz 1 · 27 Oct 2024 · September 2024 term

Question 8: Consider two datasets namely "ds1" and "ds2" . The struct…

Question 8

+4 marksOne or more correct options

Consider two datasets namely "ds1" and "ds2" . The structure of the dataset with the number of samples in each split is given below. Suppose we create a new dataset in the following ways. Assume necessary

python
DatasetDict({
train: Dataset({
features: ['text', 'label'],
num_rows: 25000
})
test: Dataset({
features: ['text', 'label'],
num_rows: 25000
})
unsupervised: Dataset({
features: ['text', 'label'],
num_rows: 50000
})
})

ds1

python
DatasetDict({
train: Dataset({
features: ['text', 'label'],
num_rows: 8530
})
test: Dataset({
features: ['text', 'label'],
num_rows: 1066
})
unsupervised: Dataset({
features: ['text', 'label'],
num_rows: 1066
})
})

ds2

imports and the statements are executed independently (i.e., an error in executing a statement does not affect the execution of other statements). Select all the correct statements.

python
ds3 = datasets.concatenate_datasets([ds1,ds2])
ds4 = datasets.concatenate_datasets([ds1['train'],ds2['train']])
ds5 = datasets.concatenate_datasets([ds1['train'],ds2['test']])
ds6 = datasets.concatenate_datasets(
[ds1['train'],ds1['test'],
ds2['train'],ds2['validation']])

Select all that apply.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answers

  • B
  • C
  • D

Question 8 of 15 in the IIT Madras BS Deep Learning Practice (Deep Learning Practice) Quiz 1 paper sat on 27 Oct 2024, in the September 2024 term (IIT M DEGREE AN EXAM QDB2 27 Oct 2024). It carries 4 marks.

More questions from this paper

  1. Q1Figure question
  2. Q2Choose the Hugging Face module that helps us train a tokenizer from scratch on a specific dataset.
  3. Q3A dataset contains 10 billion words ( separated by a single white space). Suppose we use a pre- trained tokenizer that …
  4. Q4Which of the following tokenization algorithms can be applied to languages that do not have any word delimiters?
  5. Q5Consider the Wikipedia dataset scraped from the web that contains 2 billion words. A team decided to use the BPE tokeni…
  6. Q6Suppose that we pre-train a Causal Language Model. Choose the data collator function from the Hugging Face library that…
  7. Q7The IMDB dataset has 25000 samples in the training split. It contains two columns, named, text and label. Consider the …
  8. Q9Figure question
  9. Q10Figure question
  10. Q11Here is a configuration of the GPTNeo model from the Hugging Face hub. Figure 1: GPTNeoConfig Based on the above data, …
  11. Q12Here is a configuration of the GPTNeo model from the Hugging Face hub. Figure 1: GPTNeoConfig Based on the above data, …
  12. Q13Here is a set of training arguments used by the GPT-2 model that was pre-trained on a dataset that contains 10 billion …
  13. Q14Here is a set of training arguments used by the GPT-2 model that was pre-trained on a dataset that contains 10 billion …
  14. Q15Figure question