1. Home
  2. Explore
  3. Computer Science
  4. PyTorch Deep Learning

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

PyTorch Deep Learning

  • 24Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: ML/DL Concepts
Machine learning is the process of turning data into numbers and finding
in those numbers.

24 questions

  1. 1
    Machine learning is the process of turning data into numbers and finding
    _____
    in those numbers.
    Hint

    Think about what the algorithm is trying to discover from the data.

    Answer

    patterns

  2. 2
    In traditional programming, the rules are provided, while in supervised machine learning, the algorithm learns the
    _____
    from the inputs and desired outputs.
    Hint

    What does the algorithm figure out between input and output?

    Answer

    rules

  3. 3
    According to Google's Rule #1, you should not use machine learning if you can build a simple, reliable
    _____
    -based system.
    Hint

    What type of system can solve the problem without learning?

    Answer

    rule

  4. 4
    Deep learning models are not suitable when errors are unacceptable because they are
    _____
    , not deterministic.
    Hint

    What term describes models that give probabilities rather than certainties?

    Answer

    probabilistic

  5. 5
    Machine learning (shallow algorithms) is best for
    _____
    data, such as tables of numbers.
    Hint

    What type of data is organized in rows and columns?

    Answer

    structured

  6. 6
    In a neural network, the input data must be numerically encoded into a
    _____
    before being passed through the network.
    Hint

    What is the fundamental data structure in PyTorch?

    Answer

    tensor

  7. 7
    The learning paradigm where a model learns to map input data to output labels is called
    _____
    learning.
    Hint

    This type of learning uses labeled data.

    Answer

    supervised

  8. 8
    PyTorch is a deep learning framework that allows you to write fast code accelerated by
    _____
    .
    Hint

    What hardware is used to speed up numerical calculations?

    Answer

    GPUs

  9. 9
    In PyTorch, the fundamental building block of data is called a
    _____
    .
    Hint

    It can be a vector, matrix, or higher-dimensional array.

    Answer

    tensor

  10. 10
    The process used by PyTorch to interface with NVIDIA GPUs is called
    _____
    .
    Hint

    This is a parallel computing platform and API.

    Answer

    CUDA

  11. 11
    In the PyTorch workflow, after building a model, you must pick a loss function and an
    _____
    .
    Hint

    This adjusts model parameters to minimize loss.

    Answer

    optimizer

  12. 12
    For a linear regression problem, a common loss function is nn.L1Loss(), also known as
    _____
    .
    Hint

    This loss measures the average absolute difference between predictions and targets.

    Answer

    Mean Absolute Error (MAE)

  13. 13
    The backpropagation step in PyTorch is performed by calling
    _____
    on the loss.
    Hint

    This computes gradients of the loss with respect to parameters.

    Answer

    loss.backward()

  14. 14
    When saving a PyTorch model, the recommended approach is to save the model's `
    _____
    usingtorch.save()`.
    Hint

    This is a dictionary containing learned parameters.

    Answer

    state_dict

  15. 15
    For binary classification, the recommended loss function is nn.BCEWithLogitsLoss(), which combines a sigmoid layer and
    _____
    loss.
    Hint

    This loss is often used for binary classification problems.

    Answer

    binary cross-entropy

  16. 16
    In multi-class classification, the output layer uses the
    _____
    activation function to convert logits to probabilities.
    Hint

    This function outputs probabilities that sum to 1 across classes.

    Answer

    softmax

  17. 17
    To convert raw model outputs (logits) to prediction probabilities in binary classification, you apply the
    _____
    function.
    Hint

    This function maps any real number to a value between 0 and 1.

    Answer

    sigmoid

  18. 18
    The `
    _____
    ` function is commonly used as a non-linear activation in hidden layers to introduce non-linearity.
    Hint

    This function zeros out negative values and keeps positive values unchanged.

    Answer

    ReLU

  19. 19
    A neural network with only linear layers cannot solve
    _____
    problems like separating circular data.
    Hint

    What type of decision boundary is needed for such problems?

    Answer

    non-linear

  20. 20
    The FashionMNIST dataset consists of 28x28 grayscale images of 10 different
    _____
    items.
    Hint

    What type of objects are in the dataset?

    Answer

    clothing

  21. 21
    A DataLoader in PyTorch handles batching the data and optionally
    _____
    the data for training.
    Hint

    What operation is often applied to training data to improve learning?

    Answer

    shuffling

  22. 22
    In a convolutional layer, the
    _____
    parameter determines how many pixels the kernel moves at each step.
    Hint

    This controls the movement of the filter across the image.

    Answer

    stride

  23. 23
    The nn.MaxPool2d layer compresses the image by taking the
    _____
    value from a small window.
    Hint

    What aggregation operation does max pooling perform?

    Answer

    maximum

  24. 24
    In the TinyVGG architecture, after the convolutional blocks, a `
    _____
    ` layer is used to flatten the feature maps before the linear classifier.
    Hint

    This operation converts a multi-dimensional tensor into a 1D vector.

    Answer

    Flatten

1 of 24
Question 1 of 24

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent