Quiz Space

Deep Learning Practice Quiz 2: 16 March 2025 (January 2025 term)

Question 1

+3 marksOne correct option

Consider the following code using Wav2Vec2Processor to process an audio sample:

python
import torch
from transformers import Wav2Vec2Processor
processor = Wav2Vec2Processor.from_pretrained("facebook/wav2vec2-base-960h")
sample_audio = {"array": torch.randn(12000), "sampling_rate": 16000}
inputs = processor(sample_audio["array"], sampling_rate=16000, return_tensors="pt", padding=True)
print(inputs["input_values"].shape)

What will the printed shape be?

  1. A

    (1, 16000)

  2. B

    (1, X), where X depends on the model

  3. C

    (1, 12000)

  4. D

    Error: Wav2Vec2Processor does not support PyTorch tensors

Question 2

+3 marksOne correct option

Consider the following code snippet:

python
from transformers import Wav2Vec2Processor
processor = Wav2Vec2Processor.from_pretrained("facebook/wav2vec2-large-960h")
input_values = processor("audio.wav", return_tensors="pt", sampling_rate=16000).input_values

What is the primary mistake in this code?

  1. A

    return_tensors="pt" should be return_tensors="np".

  2. B

    input_values should be extracted using .input_values[0] to match expected dimensions.

  3. C

    The sampling_rate argument should be passed during from_pretrained(), not while calling processor().

  4. D

    processor cannot process raw audio file paths, only arrays of audio samples.

Question 3

+3 marksOne correct option

You have a model that predicts transcriptions for audio clips. You calculate Word Error Rate (WER) using the jiwer package as follows:

python
from jiwer import wer
ground_truth = ["hello world", "this is a test"]
predictions = ["hello word", "this test"]
error = wer(ground_truth, predictions)
print(f"WER: {error:.2f}")

What will be the output of this code?

  1. A

    WER: 0.25

  2. B

    WER: 0.50

  3. C

    WER: 0.33

  4. D

    WER: 0.67

16 more questions in this paper

Sign in with Google — it is free — to see every question with its answer and explanation, practise it in learning mode, or take it as a timed mock test.

More on the Deep Learning Practice Quiz 2 16 Mar 2025 paper

The IIT Madras BS Deep Learning Practice (Deep Learning Practice) Quiz 2 paper sat on 16 Mar 2025, in the January 2025 term: 19 questions for 50 marks in 120 minutes. The first 3 questions are below. Sign in with Google — it is free — to see the whole paper with its answers and explanations, in learning mode or as a timed mock test.

FeatureDeep Learning Practice Quiz 2 16 Mar 2025 at a glance
TermJanuary 2025 term
SubjectDeep Learning Practice
Course codeBSDA5013
Questions19
Marks50
Duration120 min
MCQ9
MSQ8
Numerical2
Official paperIIT M DEGREE AN EXAM QDB2 16 Mar 2025
Negative markingNo negative marking.
Updated

Same Quiz 2, other subjects

More Deep Learning Practice