Introduction to Neural Networks
- 106Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
When and where did the field of artificial intelligence originate?
106 questions
- 1
When and where did the field of artificial intelligence originate?
Model answer
Artificial intelligence originated in 1956 at Dartmouth.
Explanation
The field was formally defined by a group of researchers who gathered at Dartmouth in 1956.
- 2
Name three MIT-associated figures who helped establish artificial intelligence and identify one of their contributions.
Model answer
Marvin Minsky founded the MIT AI Lab, John McCarthy invented LISP, and Claude Shannon developed information theory.
Explanation
These researchers were prominent contributors to the early development of AI and related fields.
- 3
What was the overly optimistic early prediction about the progress of artificial intelligence?
Model answer
The early researchers believed that AI would be substantially solved by that fall.
Explanation
The prediction proved unrealistic, as AI development continued for many decades.
- 4
How is artificial intelligence informally defined?
Model answer
AI is the ability to give computers the ability to perform cognitive or thinking tasks that humans typically perform.
Explanation
The definition focuses on computer systems carrying out tasks associated with human cognition.
- 5
What are the major stages or breakthroughs described in the development of AI?
Model answer
The stages are traditional rule-based AI, machine learning, deep learning, and generative AI.
Explanation
Each stage introduced a different way of enabling computers to perform intelligent tasks.
- 6
How did traditional AI attempt to make computers perform tasks such as chess playing or ECG interpretation?
Model answer
Experts supplied explicit if-then rules based on their knowledge, and those rules were programmed into the computer.
Explanation
The system used manually written rules to map particular situations to actions or diagnoses.
- 7
Why was the time required to enumerate traditional AI rules not the main reason that rule-based AI failed to generalize?
Model answer
Increasing computer speed could reduce the time needed to process rules, but it could not solve the problem that the rules did not cover new situations.
Explanation
The central limitation was not computational speed but the brittleness and incompleteness of manually specified rules.
- 8
Why do rule-based AI systems fail when they encounter situations that were not included during development?
Model answer
They are trained on a small set of manually written rules, so they are brittle and do not generalize well to the many possible situations in the real world.
Explanation
Real-world deployments contain potentially unlimited edge cases and novel circumstances.
- 9
What is Polanyi's paradox?
Model answer
Polanyi's paradox is the idea that people know more than they can explicitly explain or articulate.
Explanation
Humans can often perform tasks rapidly without being able to state the actual mental rules they use.
- 10
Why does Polanyi's paradox make it difficult to create rule-based AI systems?
Model answer
If people cannot accurately describe how they perform a task, developers cannot reliably convert that process into computer rules.
Explanation
People's explanations may be incomplete or may not correspond to the actual processes underlying their decisions.
- 11
How does machine learning differ from traditional rule-based AI?
Model answer
Machine learning infers a mapping from inputs to outputs using statistical techniques and examples instead of relying on explicitly programmed rules.
Explanation
For example, it can learn from chess positions and next moves or from ECGs and diagnoses.
- 12
What is the basic definition of machine learning given in the lecture?
Model answer
Machine learning is learning from input-output examples using statistical techniques.
Explanation
The goal is to learn a function that maps input data to the desired output.
- 13
Why is linear regression considered a machine learning method?
Model answer
Linear regression is a statistical method that learns a relationship between inputs and outputs from data.
Explanation
Neural networks are only one of many possible methods for creating machine learning models.
- 14
What is the relationship between artificial intelligence and machine learning in common usage?
Model answer
Although machine learning is only one approach within AI, people often use the term AI when they are actually referring to machine learning.
Explanation
Machine learning is widely used and successful, while AI is the broader field.
- 15
What kind of input data has traditionally been required for machine learning to work especially well?
Model answer
Traditional machine learning works especially well with structured data that can be represented numerically in rows and columns.
Explanation
Such data can be placed into a spreadsheet-like format for modeling.
- 16
Distinguish between numerical and categorical variables in a structured dataset.
Model answer
Numerical variables already contain numbers, whereas categorical variables represent categories such as yes or no.
Explanation
Categorical variables can often be converted into numerical form for machine learning.
- 17
How can categorical variables be converted into a form usable by many machine learning algorithms?
Model answer
They can be numericalized using techniques such as one-hot encoding.
Explanation
This conversion allows categorical information to be placed into numerical input columns.
- 18
Give an example of a structured machine learning dataset for predicting cardiac events.
Model answer
The dataset could contain patient age, smoking status, exercise status, symptoms, and whether the patient later experienced a cardiac event.
Explanation
These characteristics and outcomes can be organized into spreadsheet columns.
- 19
Why is a raw digital image considered unstructured data despite being represented numerically?
Model answer
Its raw pixel numbers do not intrinsically identify the underlying objects or meanings in the image.
Explanation
A numerical pixel value can result from many different real-world sources, such as sky, water, or paint.
- 20
How is a color image digitally represented according to the lecture?
Model answer
It is represented by three tables of numbers corresponding to the amounts of red, green, and blue light at each pixel.
Explanation
Each value measures light intensity on a scale from 0 to 255.
- 21
What does an individual image value such as 251 represent?
Model answer
It represents a high amount of a particular color's light at a pixel location, not the identity of the object producing that color.
Explanation
A value of 251 out of a possible 255 indicates substantial light intensity but has no intrinsic semantic meaning.
- 22
What is feature engineering or feature extraction?
Model answer
It is the manual process of converting raw data into meaningful features that can be organized for machine learning.
Explanation
For an image, this may involve extracting measurable characteristics rather than using raw pixels directly.
- 23
How could features be manually engineered for a bird-species classifier?
Model answer
A developer might measure the bird's beak length, wingspan, primary color, and other characteristics.
Explanation
These measurements create a structured representation of the original image.
- 24
What does the term representation mean in the context of machine learning?
Model answer
A representation is a transformed form of raw data that expresses it in features useful for a learning algorithm.
Explanation
Representation changes the form of the data so that a model can work with it more effectively.
- 25
Why were representations historically important in computer vision and other machine learning applications?
Model answer
Once useful representations were manually created, standard methods such as linear or logistic regression could use them to build accurate classifiers.
Explanation
The quality of the representation often determined the success of the resulting model.
- 26
Why did developing representations become a major human bottleneck?
Model answer
Researchers had to manually design and test representations for each particular problem, making the process labor-intensive and difficult to scale.
Explanation
This sharply limited the reach and applicability of machine learning to unstructured data.
- 27
Describe how a researcher might use manually engineered representations to detect a type of stroke in CAT scans.
Model answer
The researcher could design features that capture relevant CAT-scan patterns and then use those features with a classifier to predict whether evidence of the stroke is present.
Explanation
The classifier depends on the manually developed representation of the scan.
- 28
What is the defining representational advantage of deep learning over traditional machine learning?
Model answer
Deep learning automatically learns useful representations directly from raw input data without requiring upfront manual feature extraction.
Explanation
The keyword is automatically: the model learns intermediate transformations on its own.
- 29
How does deep learning fit within the broader field of machine learning?
Model answer
Deep learning is a subset of machine learning that uses neural networks to learn representations and make predictions.
Explanation
It is not separate from machine learning; it is one powerful machine learning approach.
- 30
Describe the basic pipeline of a deep learning system.
Model answer
Raw input enters the system, intermediate layers automatically learn representations, and the resulting representation is passed to a linear or logistic regression output model.
Explanation
The intermediate transformations eliminate the need for manual feature engineering.
- 31
What three forces contributed to the success of modern deep learning?
Model answer
The three forces were new algorithmic ideas, large amounts of data, and parallel computing hardware such as GPUs.
Explanation
Their convergence enabled neural networks to be trained effectively at scale.
- 32
What are GPUs, and why are they important for deep learning?
Model answer
GPUs are graphics processing units that provide parallel computing hardware, helping perform the large number of computations required by deep learning.
Explanation
Parallel computation was an important technological force behind modern neural network progress.
- 33
How did deep learning change the use of machine learning with unstructured data?
Model answer
It removed much of the human bottleneck by learning representations automatically from inputs such as images, text, and other unstructured data.
Explanation
This greatly expanded the range of problems that machine learning could address.
- 34
Why is image classification a natural application of deep learning?
Model answer
Images are unstructured inputs, and deep learning can automatically learn visual representations needed to classify them.
Explanation
The model can learn relevant patterns without requiring developers to manually specify features such as shapes or colors.
- 35
How can deep learning be attached to a sensor to make the sensor more useful?
Model answer
A deep learning system can analyze the sensor's unstructured output to detect, recognize, classify, count, or predict properties of what the sensor observes.
Explanation
Cameras produce images or video, while microphones produce audio, both of which can be analyzed by deep learning.
- 36
Explain how Face ID illustrates the use of deep learning with a sensor.
Model answer
The phone's camera acts as a sensor, and a deep learning system classifies the captured facial input to determine whether it matches the authorized user.
Explanation
The example demonstrates a camera followed by a deep learning classification system.
- 37
Identify two applications of deep learning in autonomous vehicles.
Model answer
Autonomous vehicles use deep learning for tasks such as pedestrian detection, traffic-light detection, and zebra-crossing detection.
Explanation
Multiple visual recognition systems operate under the hood of self-driving systems.
- 38
How is deep learning used in visual inspection for manufacturing?
Model answer
Cameras and deep learning models can detect defects such as dents and scratches in manufactured products.
Explanation
The system replaces or assists human visual inspection by classifying visual defects.
- 39
How do smart binoculars illustrate a potential product application of deep learning?
Model answer
The binoculars use a sensor and deep learning system to identify the species of a bird being viewed.
Explanation
The broader product idea is to look for sensors whose outputs can be analyzed by an attached deep learning system.
- 40
What is the difference between structured and unstructured outputs in machine learning?
Model answer
Structured outputs are usually single values or a small number of numerical values, whereas unstructured outputs include objects such as images, text, audio, or music.
Explanation
Traditional models could predict numbers relatively easily but struggled to generate complex unstructured data.
- 41
What kinds of structured outputs can conventional machine learning predict?
Model answer
It can predict values such as loan-repayment probabilities, product demand, class probabilities, or GPS coordinates.
Explanation
These outputs consist of one or a few numerical values.
- 42
What is generative AI?
Model answer
Generative AI is the ability to create unstructured data such as images, text, audio, or music.
Explanation
It addresses the problem of generating complex data rather than merely consuming it.
- 43
What is the relationship between generative AI and deep learning?
Model answer
Generative AI is one type of deep learning and operates using deep learning models, although much deep learning is not generative AI.
Explanation
Deep learning includes many predictive and classification applications in addition to generation.
- 44
Give four examples of mappings that generative AI systems can perform.
Model answer
Examples include text-to-image, text-to-music, text-to-text, and image-to-text mappings.
Explanation
Generative systems can transform one type of content into another or generate content of the same type.
- 45
What does it mean for a generative AI system to be multimodal?
Model answer
A multimodal system can accept and produce multiple data types, such as text and images, in flexible combinations.
Explanation
The inputs and outputs are not restricted to a single modality such as text alone.
- 46
How are previously separate generative AI capabilities beginning to change?
Model answer
Capabilities such as text-to-text, text-to-image, and text-to-music are increasingly being combined within multimodal models.
Explanation
The separate modality-specific systems are beginning to merge into more general systems.
- 47
Why should the answer from a generative AI system be double-checked in practical situations?
Model answer
Generative AI systems can hallucinate, meaning they may produce confident but incorrect answers.
Explanation
Even when a system gives a correct answer in one case, its output should not automatically be treated as reliable.
- 48
What is meant by the claim that deep learning can learn a mapping from anything to anything?
Model answer
With sufficient data, deep learning can learn relationships between many combinations of input and output modalities, including text, images, audio, and numerical values.
Explanation
Modern systems can handle diverse and multimodal inputs and outputs.
- 49
What is logistic regression designed to produce?
Model answer
Logistic regression takes numerical inputs and produces a probability between 0 and 1.
Explanation
The probability can represent the likelihood of a binary outcome.
- 50
Write the logistic sigmoid function used to convert a number into a probability.
Model answer
The sigmoid function is 1+e−a1, where a is the input to the function.
Explanation
The sigmoid maps any real-valued input to a value between 0 and 1.
- 51
Describe the interview-prediction example used to illustrate logistic regression.
Model answer
GPA and years of work experience are the two input variables, and the binary output indicates whether a graduate is called for an interview.
Explanation
The task is a two-input, one-output classification problem.
- 52
In the interview example, what do the output values 0 and 1 represent?
Model answer
0 means the person is not called for an interview, while 1 means the person is called for an interview.
Explanation
The binary output encodes the classification outcome.
- 53
How does the network representation of logistic regression process an input?
Model answer
Each input is multiplied by its coefficient, the products and intercept are added, and the resulting number is passed through a sigmoid to produce a probability.
Explanation
The graphical network represents the same mathematical operation as logistic regression.
- 54
Using the interview model with intercept 0.4, GPA coefficient 0.2, and experience coefficient 0.5, calculate the linear combination for GPA 3.8 and experience 1.2.
Model answer
The linear combination is 0.4+0.2(3.8)+0.5(1.2)=1.76.
Explanation
The weighted inputs and intercept are added before applying the sigmoid.
- 55
What probability results from applying the sigmoid to the linear combination 1.76 in the interview example?
Model answer
The resulting probability is approximately 0.85.
Explanation
The sigmoid converts the linear score into the estimated probability of being called for an interview.
- 56
How does the logistic-regression network generalize from two inputs to k inputs?
Model answer
Each of the k inputs is multiplied by its own coefficient, the weighted values and intercept are summed, and the sum is passed through a sigmoid.
Explanation
The same left-to-right computation applies regardless of the number of input variables.
- 57
What are regression coefficients called in neural network terminology?
Model answer
They are called weights.
Explanation
A weight determines how strongly an input contributes to a node's calculation.
- 58
What is the neural network term for an intercept?
Model answer
An intercept is called a bias.
Explanation
The bias is an additional value included in a node's weighted sum.
- 59
Why is a neural network often represented graphically rather than only as an algebraic formula?
Model answer
The graphical representation makes it easier to see how multiple operations and intermediate transformations are organized and connected.
Explanation
The network form also makes it clear that additional functions can be inserted between inputs and outputs.
- 60
What is the key structural idea gained by rewriting logistic regression as a network?
Model answer
The representation reveals that intermediate layers can be inserted between the input and output to transform the data.
Explanation
These intermediate transformations provide the basis for learning representations.
- 61
What is a linear-function node represented by a circle containing a plus sign?
Model answer
It represents a node that computes a weighted linear combination of its inputs, including a bias.
Explanation
The plus sign is shorthand for the addition involved in a linear function.
- 62
Why must intermediate transformations in a neural network include nonlinear functions?
Model answer
Without nonlinear functions, stacking linear transformations would not provide the additional expressive power needed to learn complex representations.
Explanation
Nonlinearity allows repeated layers to model more complicated relationships than a single linear transformation.
- 63
What is a neuron in a neural network?
Model answer
A neuron applies a linear function to its inputs and then passes the result through a nonlinear activation function.
Explanation
A neuron can receive many values but produces one output value.
- 64
What is a layer in a neural network?
Model answer
A layer is a collection or vertical arrangement of neurons operating at the same stage of the network.
Explanation
Layers organize the repeated transformations performed between the input and output.
- 65
Distinguish among input, hidden, and output layers.
Model answer
The input layer receives the data, hidden layers perform intermediate transformations, and the output layer produces the final result.
Explanation
The input layer is mainly a naming convention for the supplied data, while hidden layers contain learned transformations.
- 66
What is a fully connected or dense layer?
Model answer
It is a layer in which every neuron is connected to every neuron in the preceding or following layer.
Explanation
Each output from one layer is transmitted to all neurons in the next layer.
- 67
Why can logistic regression be viewed as a neural network?
Model answer
Logistic regression is essentially a neural network with an input layer and output layer but no hidden layers.
Explanation
It performs one weighted linear transformation followed by a sigmoid.
- 68
What makes a neural network a deep learning model?
Model answer
Deep learning uses neural networks with many layers.
Explanation
The depth provides repeated opportunities to transform inputs and learn representations.
- 69
What is an activation function?
Model answer
An activation function receives one scalar value and returns one scalar value, typically after a neuron computes a linear combination of inputs.
Explanation
Activation functions determine how the neuron's computed signal is transformed before being passed onward.
- 70
How does the sigmoid activation function transform its input?
Model answer
It maps an input a to 1+e−a1, producing a value between 0 and 1.
Explanation
The sigmoid is especially useful when the output must be interpreted as a probability.
- 71
What happens to very negative and very positive inputs under a sigmoid function?
Model answer
Very negative inputs produce values close to 0, while very positive inputs produce values close to 1.
Explanation
The sigmoid changes most rapidly for inputs in the middle of its range.
- 72
Where does the sigmoid function have its greatest sensitivity to changes in input?
Model answer
Its greatest change occurs in the middle range of inputs between its near-0 and near-1 regions.
Explanation
This middle region is where the sigmoid's output increases most dramatically.
- 73
What does a linear activation function do?
Model answer
It passes its input through unchanged.
Explanation
The output is simply the same number as the input.
- 74
Define the rectified linear unit, or ReLU.
Model answer
ReLU is max(a,0): it leaves positive inputs unchanged and converts negative inputs to 0.
Explanation
ReLU is a nonlinear activation function widely used in hidden layers.
- 75
What output does ReLU produce for a negative input, and what output does it produce for a positive input?
Model answer
For a negative input it produces 0; for a positive input it produces the input unchanged.
Explanation
This behavior is the defining operation of the rectified linear unit.
- 76
Why is ReLU commonly used in hidden layers?
Model answer
It has been found empirically to work very well and is widely regarded as an important factor in the success of deep learning.
Explanation
The lecture recommends ReLU as the default choice for intermediate layers.
- 77
Name three activation functions other than sigmoid, linear activation, and ReLU.
Model answer
Examples include tanh, leaky ReLU, GELU, and swish.
Explanation
Many alternative activation functions have been proposed for particular situations.
- 78
Which activation function is generally recommended as a default for hidden layers?
Model answer
ReLU is generally recommended as the default for hidden layers.
Explanation
The recommendation is based on its strong empirical performance.
- 79
What determines the activation function used in a neural network's output layer?
Model answer
The required form of the output determines the output activation function.
Explanation
For example, a probability between 0 and 1 requires a sigmoid, while multiple probabilities summing to 1 require softmax.
- 80
Which output activation should be used for a single probability between 0 and 1?
Model answer
A sigmoid activation should be used.
Explanation
The sigmoid constrains the output to the required probability range.
- 81
Which output activation should be used when producing multiple probabilities that must sum to 1?
Model answer
A softmax activation should be used.
Explanation
Softmax is designed to convert multiple scores into a probability distribution.
- 82
Which aspects of a neural network's design can the model designer choose?
Model answer
The designer chooses the number of hidden layers, the number of neurons in each hidden layer, and the hidden-layer activation functions.
Explanation
The input and required output are fixed by the problem, while the internal architecture is selected by the designer.
- 83
Why is the output layer not completely freely chosen by the network designer?
Model answer
Its activation and structure must match the type and format of output the task requires.
Explanation
For example, binary probability prediction requires a sigmoid output.
- 84
What is neural architecture search?
Model answer
Neural architecture search is a field that explores different neural network architectures and uses optimization methods to identify effective designs.
Explanation
It can search over architecture choices rather than relying entirely on manual design.
- 85
Does a standard neural network change its number of layers between successive passes through the training data?
Model answer
No. The architecture is normally fixed during training, including the number of layers.
Explanation
Changing the number of layers between passes is not the standard training procedure described.
- 86
What is dropout, and what problem does it help prevent?
Model answer
Dropout randomly omits some nodes during each pass through selected layers and helps prevent overfitting.
Explanation
The network does not use every node on every pass, which can improve generalization.
- 87
How are the weights and biases of a neural network determined during training?
Model answer
Training data, a loss function, and an optimization algorithm are used to adjust the weights and biases so that prediction error is minimized.
Explanation
The model learns these parameters rather than requiring the designer to specify them manually.
- 88
What is the explainability challenge in a neural network?
Model answer
The network's computations can be traced for a given input, but it is difficult to assign the final prediction to one particular input attribute because the attributes become deeply combined.
Explanation
The issue is attribution and interpretation, not knowing the computational path.
- 89
In the interview-prediction neural network, why are two inputs and a sigmoid output used?
Model answer
The two inputs are GPA and experience, while the sigmoid is used because the output is the probability of being called for an interview.
Explanation
The input size and output format are determined by the prediction problem.
- 90
Why does the interview example use ReLU units in its hidden layer?
Model answer
ReLU is the recommended default for hidden layers because it usually performs well in practice.
Explanation
The hidden units need nonlinear activations to learn complex transformations.
- 91
How many trainable parameters are in a network with two inputs, one hidden layer of three neurons, and one output neuron, including all weights and biases?
Model answer
The network has 13 parameters: 2×3=6 input-to-hidden weights, 3 hidden biases, 3 hidden-to-output weights, and 1 output bias.
Explanation
The total is 6+3+3+1=13; the output bias must not be omitted.
- 92
How many outputs does a single neural network node generally produce?
Model answer
A node generally produces one numerical output, even though it may receive many inputs.
Explanation
Its weighted sum and activation function reduce the incoming values to one outgoing value.
- 93
In a three-neuron hidden layer, where can the output of one hidden neuron be sent?
Model answer
In a fully connected network, its output is sent to every neuron in the next layer.
Explanation
The same single output can be copied along connections to all subsequent neurons.
- 94
What happens during a forward prediction through a neural network?
Model answer
Inputs are transformed successively by weighted sums, biases, and activation functions until the output layer produces the prediction.
Explanation
Information flows from the input layer toward the output layer.
- 95
What is the direction of data flow in a feedforward neural network?
Model answer
Data flows from left to right, from the input layer through hidden layers to the output layer, without looping backward.
Explanation
The defining feature is the forward progression through the network.
- 96
What is a feedforward neural network?
Model answer
It is a neural network in which information flows from the input through successive layers to the output.
Explanation
The lecture contrasts feedforward networks with recurrent networks.
- 97
What is the architecture of a neural network?
Model answer
Architecture is the arrangement of neurons into layers, along with their connections and activation functions.
Explanation
Different architectures, such as transformers and convolutional neural networks, organize these components differently.
- 98
What is ResNet notable for in the context of image classification?
Model answer
ResNet was described as the first neural network to surpass human-level performance in image classification.
Explanation
It is an example of a deep neural network architecture with many layers.
- 99
What is the relationship between transformers and convolutional neural networks?
Model answer
Both transformers and convolutional neural networks are particular neural network architectures.
Explanation
They organize neural computations in different ways for different applications.
- 100
Why is it important to include biases when counting neural network parameters?
Model answer
Each neuron generally has a bias in addition to its incoming weights, so omitting biases undercounts the trainable parameters.
Explanation
In the example network, forgetting the output or hidden biases would produce an incorrect total.
- 101
How do noisy or incorrect training labels affect neural network systems?
Model answer
Incorrect labels can reduce system quality, although neural networks can still perform well when there is some limited label noise.
Explanation
Reliable systems require data that are complete, comprehensive, and correctly labeled.
- 102
What is ground truth in a medical imaging dataset?
Model answer
Ground truth is the combination of an image and the label assigned to it by a human expert or group of experts.
Explanation
For mammograms, radiologists may label whether a problem is present or absent.
- 103
Why can a medical imaging training label be wrong even when it was assigned by an expert?
Model answer
An expert may fail to detect evidence of a condition, so the label can represent an incorrect conclusion.
Explanation
A later model prediction may reveal a problem that was missed in an earlier human assessment.
- 104
What properties should training data have for a high-quality neural network system?
Model answer
The data should be complete, comprehensive, and correctly labeled.
Explanation
Failure to meet these requirements can lead to poor system performance.
- 105
What is embodied intelligence?
Model answer
Embodied intelligence refers to intelligence operating through a physical system, such as a robot, that must function in the real world.
Explanation
Robots are an example because they must perceive and act within a physical environment.
- 106
Why are neural networks considered fundamental building blocks for modern robotic systems?
Model answer
Deep learning methods provide core capabilities that robotic systems can use to perceive and operate in the real world.
Explanation
Although robotics was not covered in detail, its systems use many of the same deep learning components.

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