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

Study methods

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

Deep Learning Fundamentals

  • 56Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Deep Learning

What is deep learning, and how does it extract features from input values?

56 questions

  1. 1

    What is deep learning, and how does it extract features from input values?

    Model answer

    Deep learning is a type of machine learning that extracts features from inputs using multiple layers of formulas.

    Explanation

    The layered computations transform the input as it passes through the model.

  2. 2

    Name five deep learning algorithms or model types described in the content.

    Model answer

    Examples include deep neural networks, deep belief networks, deep reinforcement learning, recurrent neural networks, and convolutional neural networks.

    Explanation

    These are examples of well-known deep learning approaches.

  3. 3

    How are deep learning and neural networks related, and why are the terms sometimes used interchangeably?

    Model answer

    Most modern deep learning algorithms are implemented using neural networks, so people often use the terms interchangeably, although they are not the same term.

    Explanation

    A neural network is an implementation technique used by many, but not all, deep learning models.

  4. 4

    Can reinforcement learning be implemented without a neural network?

    Model answer

    Yes. Reinforcement learning algorithms can be implemented without neural networks, even though many modern deep learning models use them.

    Explanation

    The content distinguishes reinforcement learning from the neural network technique often used to implement it.

  5. 5

    What is an artificial neural network, and what are its artificial neurons made of?

    Model answer

    An artificial neural network is an algorithm made by connecting artificial neurons, each of which is a combination of mathematical functions.

    Explanation

    The network connects these function-based units to derive information from inputs.

  6. 6

    How do artificial neurons differ from biological neurons according to the content?

    Model answer

    Artificial neurons and networks operate differently from neurons in living organisms; an artificial neuron is a mathematical construction.

    Explanation

    The biological analogy does not mean that the computer model works like a neuron in an organism.

  7. 7

    Why can numerical artificial neural networks process real-world data?

    Model answer

    Facts that can be expressed can also be represented numerically, so real-world data can be encoded as numbers for a neural network to process.

    Explanation

    The network processes numerical representations of facts and phenomena.

  8. 8

    What kind of information may be represented by features produced as data passes through a neural network?

    Model answer

    Features may be useful information derived from the real world, but they are not necessarily useful.

    Explanation

    The content explicitly notes that extracted features can be useful or not useful.

  9. 9

    What is a fully connected neural network, and how does it pass information between layers?

    Model answer

    It is a network in which each neuron sends its output to all neurons in the next layer.

    Explanation

    This is one way of connecting artificial neurons; other connection arrangements also exist.

  10. 10

    What is a hidden layer in a neural network?

    Model answer

    A hidden layer is any layer other than the input layer that receives data or the output layer that returns the network’s result.

    Explanation

    Hidden layers are between the network’s input and output layers.

  11. 11

    How can neural networks with different connection structures be understood in relation to a fully connected network?

    Model answer

    They may connect neurons differently, but their basic operation is similar to that of a fully connected network.

    Explanation

    The fully connected network serves as one example for understanding the general process.

  12. 12

    What connects a neuron’s input port to information from the preceding layer?

    Model answer

    An input port receives either data entering the neural network or an output from a neuron in the previous layer.

    Explanation

    A neuron can have one or several input ports.

  13. 13

    How does a neuron’s weight affect the inputs it receives?

    Model answer

    A neuron can assign a weight to each input port, allowing some inputs to have more influence than others.

    Explanation

    Weights represent the relative importance assigned to the input values.

  14. 14

    How does an artificial neuron calculate a value from its inputs?

    Model answer

    It multiplies its input values by their weights, sums the weighted values, and uses an activation function to determine its output.

    Explanation

    The weighted sum is passed to the activation function.

  15. 15

    What is an activation function, and why can activation functions differ?

    Model answer

    An activation function operates on a neuron’s input to produce an output; the function may vary depending on the input data or the neuron’s role.

    Explanation

    The function determines how the neuron transforms its received value.

  16. 16

    What is forward propagation?

    Model answer

    Forward propagation is the process of passing values through activation functions and onward through the network’s layers.

    Explanation

    Outputs from one layer become inputs to the next layer.

  17. 17

    In the spam-detection example, what three binary email features are used as inputs?

    Model answer

    The inputs indicate whether the sender is blacklisted, whether the word “password” appears, and whether an “exe” file is attached.

    Explanation

    Each feature is represented as true or false, or numerically as 1 or 0.

  18. 18

    Why does the spam example use binary inputs, and how are true and false represented?

    Model answer

    The example simplifies the email information into true-or-false features; true is represented by 1 and false by 0.

    Explanation

    The content notes that real-world models may use much more complex inputs.

  19. 19

    What weights are assigned to the three spam-detection inputs, and why is the first input given its weight?

    Model answer

    The weights are 0.5 for a blacklisted sender, 0.2 for the “password” feature, and 0.3 for an “exe” attachment; the first is weighted highly because a blacklisted sender strongly suggests spam.

    Explanation

    Weights encode the relative importance assigned to each feature in this example.

  20. 20

    What rule does the spam example use to classify an email as spam?

    Model answer

    It classifies an email as spam when the weighted input sum is greater than 0.5.

    Explanation

    The activation function applies this threshold to the weighted sum.

  21. 21

    In the example, the sender is blacklisted, “password” is absent, and an “exe” file is attached. What is the weighted sum, and how is the email classified?

    Model answer

    The weighted sum is 0.8, so the email is classified as spam.

    Explanation

    The inputs are 1, 0, and 1, giving a weighted sum of 1(0.5)+0(0.2)+1(0.3)=0.81(0.5)+0(0.2)+1(0.3)=0.81(0.5)+0(0.2)+1(0.3)=0.8, which exceeds the 0.5 threshold.

  22. 22

    What values does the spam classifier’s activation function return for its two possible classifications?

    Model answer

    It returns 1 for spam and 0 otherwise.

    Explanation

    The weighted sum and threshold determine which of the two output values is returned.

  23. 23

    What does training the spam-detection model mean in the example?

    Model answer

    It means optimizing the weights so the model produces more accurate results.

    Explanation

    Adjusting the weights changes how the input features contribute to the classification.

  24. 24

    What is supervised learning, and what data pairs are used to train a supervised neural network?

    Model answer

    Supervised learning trains a model using pairs consisting of input data and the correct output answer.

    Explanation

    The model learns from examples that include the answers it should produce.

  25. 25

    How does the content compare supervised learning to human memorization?

    Model answer

    It compares supervised learning to memorizing problem-and-correct-answer pairs, such as studying quiz questions and answers.

    Explanation

    The analogy emphasizes learning from examples paired with their correct responses.

  26. 26

    What happens when a supervised neural network receives an input during training?

    Model answer

    It processes the input through its activation functions and returns an output, which may or may not be correct.

    Explanation

    The returned output is then compared with the known correct answer.

  27. 27

    How does a supervised neural network use the correct answer to adjust its behavior?

    Model answer

    It compares its output with the correct answer and changes its weights so that the same input is more likely to produce a similar output next time.

    Explanation

    The comparison provides a basis for adjusting the model’s internal weights.

  28. 28

    In supervised learning, what does the term “training” refer to?

    Model answer

    Training is the process of modifying the neural network’s weights based on the difference between its output and the correct answer.

    Explanation

    The weight changes aim to make the model’s output more closely match the target.

  29. 29

    What is the error in a supervised neural network, and how is loss related to it in the content?

    Model answer

    Error is the difference between the correct answer and the model’s output; loss can be thought of as the square of that error.

    Explanation

    A larger error corresponds to a larger loss.

  30. 30

    In what direction does neural network training try to move the loss value, and why?

    Model answer

    Training tries to decrease loss because reducing loss corresponds to reducing the model’s error.

    Explanation

    Weights are adjusted to make the model’s outputs closer to the correct answers.

  31. 31

    Are supervised learning the only neural network models that train by reducing loss?

    Model answer

    No. Unsupervised-learning neural network models are also trained in the direction of reducing loss.

    Explanation

    The content identifies loss reduction as a training objective for both supervised and unsupervised neural network models.

  32. 32

    What is back propagation, and how does it relate to forward propagation?

    Model answer

    Forward propagation passes outputs through the network; back propagation uses the loss to adjust weights in previous layers.

    Explanation

    Back propagation uses the outcome of the forward calculation to guide weight changes.

  33. 33

    How does the output of one neural network layer contribute to the next layer’s calculation?

    Model answer

    The previous layer’s outputs become the next layer’s inputs; they are multiplied by weights, summed, and passed to an activation function.

    Explanation

    This calculation is repeated as information moves through the network.

  34. 34

    How is the loss used to adjust weights during back propagation?

    Model answer

    The model compares its final output with the correct answer and changes weights in the direction that reduces the loss.

    Explanation

    Weight changes are propagated back through the network to improve its output.

  35. 35

    What does differentiating loss with respect to a weight reveal?

    Model answer

    It reveals how the loss changes when that weight changes.

    Explanation

    This relationship helps determine how the weight should be adjusted to reduce loss.

  36. 36

    What is the chain rule, and why is it useful for calculating how loss depends on a weight?

    Model answer

    The chain rule expresses a derivative as a product of derivatives of intermediate relationships, allowing the loss-to-weight derivative to be calculated through intermediate values.

    Explanation

    In a neural network, loss depends on a weight through the weighted sum and the activation function’s output.

  37. 37

    For a sigmoid neuron, what is the derivative of its output with respect to its weighted sum?

    Model answer

    It is y(1−y)y(1-y)y(1−y), where yyy is the sigmoid output.

    Explanation

    The content gives the sigmoid derivative in terms of the activation function’s output.

  38. 38

    For a neuron whose weighted sum is formed from input xxx and weight www, what is the derivative of the weighted sum with respect to www?

    Model answer

    It is xxx, because the input is the coefficient of the weight in the weighted sum.

    Explanation

    Differentiating a weighted input with respect to its weight leaves the input value.

  39. 39

    How can the loss derivative with respect to a weight be expressed for a sigmoid neuron?

    Model answer

    By the chain rule, it is the product of the loss derivative with respect to output, the sigmoid derivative y(1−y)y(1-y)y(1−y), and the weighted-sum derivative with respect to the weight, which is the input.

    Explanation

    For input xxx and output yyy, this gives ∂L∂w=∂L∂yy(1−y)x\frac{\partial L}{\partial w}=\frac{\partial L}{\partial y}y(1-y)x∂w∂L​=∂y∂L​y(1−y)x.

  40. 40

    Why are partial derivatives relevant to neural network training?

    Model answer

    They describe how a quantity such as loss changes with respect to one variable, such as a particular weight.

    Explanation

    This lets the model estimate the effect of changing each weight on its loss.

  41. 41

    What is a gradient in the context of a graph of weight against loss?

    Model answer

    The gradient is the slope of the tangent line at the current weight point, indicating how loss changes as the weight changes.

    Explanation

    The gradient is the derivative of loss with respect to weight.

  42. 42

    If the gradient with respect to a weight is positive, which direction should the weight move to reduce loss?

    Model answer

    The weight should decrease, because a positive gradient means loss increases as the weight increases.

    Explanation

    Moving the weight downward goes against the direction of increasing loss.

  43. 43

    If the gradient with respect to a weight is negative, which direction should the weight move to reduce loss?

    Model answer

    The weight should increase, because a negative gradient means loss decreases as the weight increases.

    Explanation

    Increasing the weight follows the direction in which loss falls.

  44. 44

    How is a new weight calculated from the old weight, gradient, and learning rate?

    Model answer

    The new weight is the old weight minus the learning rate multiplied by the gradient: wnew=wold−η∇wLw_{new}=w_{old}-\eta\nabla_w Lwnew​=wold​−η∇w​L.

    Explanation

    Subtracting the gradient moves the weight in the direction intended to reduce loss.

  45. 45

    What properties of the learning rate are described, and what example value is given?

    Model answer

    The learning rate is positive, can be set to a constant, and an example value is 0.0005.

    Explanation

    The learning rate determines the size of the weight adjustment.

  46. 46

    What happens to weight changes when the learning rate is made larger?

    Model answer

    The weight changes become larger.

    Explanation

    The learning rate scales the size of each gradient-based adjustment.

  47. 47

    How does gradient-based weight adjustment connect back propagation with reducing model error?

    Model answer

    Back propagation uses gradients to change weights in the direction that decreases loss, and lower loss corresponds to lower error.

    Explanation

    The model uses the loss signal to guide weight updates throughout the network.

  48. 48

    How are the weights of multiple neurons and layers updated, and what role does the chain rule play?

    Model answer

    Weights throughout the network are updated using gradients calculated through the chain rule; larger networks require more such calculations.

    Explanation

    The chain rule links each weight to the loss through the network’s intermediate computations.

  49. 49

    Why are GPUs used in neural network training?

    Model answer

    GPUs are used to perform the many calculations required to update neural network weights quickly.

    Explanation

    The number of gradient calculations increases as a network becomes larger.

  50. 50

    What must happen when a training set contains multiple input-and-answer pairs?

    Model answer

    The weight-updating process must be carried out for all of the data pairs.

    Explanation

    Training uses the full set of available input-and-correct-answer examples.

  51. 51

    What is one epoch in neural network training?

    Model answer

    One epoch is running back propagation across all neurons using all training data.

    Explanation

    An epoch means the complete training set has been processed for weight updates once.

  52. 52

    Why are neural networks usually trained for multiple epochs?

    Model answer

    Multiple epochs allow the model to repeat weight updates using the training data.

    Explanation

    The content states that training usually involves more than one full pass through the data.

  53. 53

    What general relationship between the amount of data and the number of training epochs is described?

    Model answer

    With a large amount of data, a model can generally be trained with fewer epochs.

    Explanation

    This is presented as a general tendency, not an absolute rule.

  54. 54

    What is inference in an artificial intelligence model, and how is prediction related to it?

    Model answer

    Inference is obtaining an output for an input; prediction is a type of inference.

    Explanation

    In a neural network, inference is also called forward propagation.

  55. 55

    How does an artificial neural network turn input data into new information?

    Model answer

    It divides the input among its ports, weights the different parts, and combines them through activation functions to produce a numerical output.

    Explanation

    Because real-world data can be represented numerically, the output can provide new information derived from that data.

  56. 56

    Besides neural networks, what other basis for deep learning models is mentioned, and what knowledge does it require?

    Model answer

    Some deep learning models are based on statistical or probabilistic algorithms, which require substantial knowledge of statistics or probability theory to understand.

    Explanation

    These are described as exceptions to the many deep learning models implemented using neural network techniques.

1 of 56
Question 1 of 56

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent