Introduction to Neural Networks
- 71Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
Where and when did the field of artificial intelligence originate?
Where and when did the field of artificial intelligence originate?
71 questions
- 1
Where and when did the field of artificial intelligence originate?
- A
At Harvard in 1950
- B
At Dartmouth in 1956
- C
At Stanford in 1965
- D
At MIT in 1956
Correct answer
BAt Dartmouth in 1956
Explanation
The field of AI was formally defined at Dartmouth in 1956, with substantial representation from MIT.
- A
- 2
Which contribution is correctly associated with John McCarthy?
- A
He founded information theory
- B
He created the ResNet architecture
- C
He invented the LISP programming language
- D
He developed the first GPU
Correct answer
CHe invented the LISP programming language
Explanation
John McCarthy invented LISP and was one of the researchers involved in founding the field of AI.
- A
- 3
Which contribution is correctly associated with Claude Shannon?
- A
He founded the MIT AI Lab
- B
He invented LISP
- C
He invented information theory
- D
He created logistic regression
Correct answer
CHe invented information theory
Explanation
Claude Shannon, who was a professor at MIT, invented information theory.
- A
- 4
Which sequence best represents the major breakthroughs described in the development of AI?
- A
Deep learning, traditional AI, machine learning, and robotics
- B
Traditional AI, machine learning, deep learning, and generative AI
- C
Machine learning, traditional AI, generative AI, and deep learning
- D
Generative AI, deep learning, traditional AI, and machine learning
Correct answer
BTraditional AI, machine learning, deep learning, and generative AI
Explanation
The lecture described a progression from traditional rule-based AI to machine learning, deep learning, and generative AI.
- A
- 5
Which description best matches the informal definition of artificial intelligence?
- A
Allowing computers to store larger quantities of numerical data
- B
Making computers execute only predetermined arithmetic calculations
- C
Using computers exclusively to control physical machines
- D
Giving computers the ability to perform tasks typically requiring human cognition
Correct answer
DGiving computers the ability to perform tasks typically requiring human cognition
Explanation
AI was informally defined as imbuing computers with the ability to perform cognitive or thinking tasks that humans typically perform.
- A
- 6
Why did early researchers initially expect AI to be solved relatively quickly?
- A
They assumed all real-world data would be structured
- B
They expected GPUs to become widely available immediately
- C
They believed computers already possessed general intelligence
- D
They believed human reasoning could be captured with sufficiently many rules
Correct answer
DThey believed human reasoning could be captured with sufficiently many rules
Explanation
Early researchers thought that formalizing human problem-solving methods could lead to rapid progress toward solving AI.
- A
- 7
What was the central strategy of traditional, rule-based AI?
- A
Optimizing neural-network weights with gradient descent
- B
Generating new text from multimodal prompts
- C
Learning representations directly from raw images
- D
Encoding expert knowledge as explicit if-then rules
Correct answer
DEncoding expert knowledge as explicit if-then rules
Explanation
Traditional AI attempted to capture expert knowledge by writing explicit rules such as, "If this condition occurs, perform this action."
- A
- 8
Why are rule-based AI systems often described as brittle?
- A
They always produce several contradictory answers
- B
They require too much computing power to evaluate any rule
- C
They cannot represent any information using numerical values
- D
They may fail when they encounter situations not covered by their rules
Correct answer
DThey may fail when they encounter situations not covered by their rules
Explanation
Rule-based systems are trained or programmed with a limited set of cases, so they may not generalize well to new or unusual situations.
- A
- 9
What does Polanyi's paradox emphasize?
- A
Human experts consciously apply every rule used in perception
- B
Computers can always explain the reasoning behind their predictions
- C
Statistical models cannot learn from input-output examples
- D
People can perform some tasks without being able to articulate how they do them
Correct answer
DPeople can perform some tasks without being able to articulate how they do them
Explanation
Polanyi's paradox states that people often know more than they can explicitly explain, making it difficult to encode certain human skills as rules.
- A
- 10
What is the defining idea of machine learning?
- A
Using only neural networks to process unstructured data
- B
Writing every possible response as an explicit computer rule
- C
Learning a mapping from inputs to outputs using statistical techniques
- D
Converting every prediction into a physical action
Correct answer
CLearning a mapping from inputs to outputs using statistical techniques
Explanation
Machine learning learns relationships between inputs and outputs from examples rather than relying exclusively on hand-written rules.
- A
- 11
Which activity is an example of machine learning according to the lecture?
- A
Designing a computer processor
- B
Writing an exhaustive chess rulebook by hand
- C
Fitting a linear regression model to data
- D
Manually labeling every pixel in an image
Correct answer
CFitting a linear regression model to data
Explanation
Linear regression is one of the many statistical methods that can be used to create a machine learning model.
- A
- 12
Which statement correctly describes the relationship between neural networks and machine learning?
- A
Neural networks and machine learning are unrelated approaches
- B
Machine learning consists exclusively of neural networks
- C
Machine learning is one specialized layer inside neural networks
- D
Neural networks are one method among many for performing machine learning
Correct answer
DNeural networks are one method among many for performing machine learning
Explanation
Neural networks are one of numerous machine learning methods, alongside approaches such as linear and logistic regression.
- A
- 13
What kind of input data traditionally works especially well with standard machine learning methods?
- A
Raw audio with no measurable attributes
- B
Free-form video without any numerical representation
- C
Structured data arranged as numerical rows and columns
- D
Unprocessed images with no extracted features
Correct answer
CStructured data arranged as numerical rows and columns
Explanation
Traditional machine learning works especially well when data can be numericalized and organized into spreadsheet-like rows and columns.
- A
- 14
How can categorical variables such as smoking status usually be prepared for standard machine learning?
- A
They can be used only as the model's output variable
- B
They can be converted into numerical values using methods such as one-hot encoding
- C
They must be discarded because algorithms cannot process categories
- D
They must be converted into images before model training
Correct answer
BThey can be converted into numerical values using methods such as one-hot encoding
Explanation
Categorical variables can be numericalized using techniques such as one-hot encoding.
- A
- 15
What is a major limitation of traditional machine learning when working with raw unstructured data?
- A
The raw data usually lacks directly meaningful features for the algorithm
- B
The data always contains too few numerical values
- C
The model cannot make predictions after training
- D
The algorithm can process only binary outputs
Correct answer
AThe raw data usually lacks directly meaningful features for the algorithm
Explanation
Raw images, audio, and similar data do not automatically provide meaningful spreadsheet-like features for traditional models.
- A
- 16
How is a digital color image represented in the example?
- A
As one table containing only the image's object labels
- B
As three numerical tables corresponding to red, green, and blue light
- C
As a single number representing the entire image
- D
As three tables containing beak length, color, and wingspan
Correct answer
BAs three numerical tables corresponding to red, green, and blue light
Explanation
The example described a color image as three tables of numbers, one each for the amounts of red, green, and blue light at pixel locations.
- A
- 17
What does a pixel value from 0 to 255 represent in the image example?
- A
The number of objects detected near that location
- B
The amount of a particular color's light at that location
- C
The physical size of the object at that location
- D
The probability that the pixel belongs to an object
Correct answer
BThe amount of a particular color's light at that location
Explanation
Each value represents the amount of red, green, or blue light at a pixel location on a scale from 0 to 255.
- A
- 18
Why does a raw image value such as 251 have limited intrinsic meaning by itself?
- A
The value directly identifies the image's object category
- B
The same value could arise from different underlying objects or surfaces
- C
The value cannot be stored as a numerical quantity
- D
The value always represents the color blue and nothing else
Correct answer
BThe same value could arise from different underlying objects or surfaces
Explanation
A value such as 251 may indicate strong blue light, but that light could come from sky, water, paint, or another source.
- A
- 19
What is feature engineering or feature extraction?
- A
Automatically generating new unstructured data from text
- B
Manually converting raw data into informative measurable attributes
- C
Changing the model's output without changing its input
- D
Removing every numerical value from a dataset
Correct answer
BManually converting raw data into informative measurable attributes
Explanation
Feature engineering involves extracting meaningful attributes from raw data, such as measuring a bird's beak length or wingspan.
- A
- 20
In the bird-classification example, which set contains manually engineered features?
- A
Beak length, wingspan, and primary color
- B
Training time, batch size, and model depth
- C
Pixel address, file size, and camera brand
- D
Bird sound, weather forecast, and image filename
Correct answer
ABeak length, wingspan, and primary color
Explanation
The example proposed measuring beak length, wingspan, and primary color to represent birds in a structured form.
- A
- 21
What does the term representation refer to in this context?
- A
Repeating the same raw data in several storage locations
- B
Displaying a model's prediction as a graph
- C
Expressing raw data in a different form that is useful for modeling
- D
Assigning a human name to each computer algorithm
Correct answer
CExpressing raw data in a different form that is useful for modeling
Explanation
Representation means transforming raw data into another form, often a set of features that a model can use effectively.
- A
- 22
Why did manually developing representations create a human bottleneck?
- A
Experts had to spend substantial time designing features for each specific problem
- B
Computers could not store the resulting structured datasets
- C
Manual representations prevented all forms of classification
- D
The features could be used only for generating music
Correct answer
AExperts had to spend substantial time designing features for each specific problem
Explanation
Researchers often spent years designing representations for particular tasks, limiting the reach and applicability of machine learning.
- A
- 23
What distinguishes deep learning from traditional machine learning in its treatment of representations?
- A
Deep learning eliminates the need for input-output examples
- B
Deep learning uses only structured spreadsheet data
- C
Deep learning requires experts to hand-code every useful feature
- D
Deep learning automatically learns representations from raw input data
Correct answer
DDeep learning automatically learns representations from raw input data
Explanation
Deep learning's key advantage is that it can automatically learn useful representations without upfront manual feature engineering.
- A
- 24
How does deep learning fit within the broader field of machine learning?
- A
Machine learning is a subfield of deep learning
- B
Deep learning replaces machine learning entirely
- C
Deep learning is a subfield of machine learning
- D
The two fields address completely different problems
Correct answer
CDeep learning is a subfield of machine learning
Explanation
Deep learning sits inside machine learning and uses neural networks to learn transformations and representations.
- A
- 25
Which pipeline best summarizes the basic deep-learning idea presented?
- A
Raw input, automatically learned representations, and a final predictive model
- B
Raw input, manual feature measurements, and a rulebook
- C
Predictions, raw outputs, and manually selected inputs
- D
Handwritten rules, fixed categories, and no predictive model
Correct answer
ARaw input, automatically learned representations, and a final predictive model
Explanation
Deep learning transforms raw input through learned intermediate representations and then feeds the result into a final model such as linear or logistic regression.
- A
- 26
Which combination of forces helped enable the modern success of deep learning?
- A
Handwritten rules, small datasets, and slower processors
- B
Fewer parameters, less data, and reduced computational capacity
- C
New algorithms, abundant data, and parallel computing hardware
- D
Expert interviews, categorical labels, and single-core hardware
Correct answer
CNew algorithms, abundant data, and parallel computing hardware
Explanation
The lecture identified new algorithmic ideas, large amounts of data, and parallel hardware such as GPUs as three converging forces.
- A
- 27
Why are GPUs important to modern deep learning?
- A
They automatically create correct labels for training data
- B
They replace the need for neural-network architectures
- C
They provide parallel computing hardware for large-scale computations
- D
They convert every image into a hand-engineered feature table
Correct answer
CThey provide parallel computing hardware for large-scale computations
Explanation
GPUs are graphics processing units that provide parallel computing capability, which supports the intensive calculations used in deep learning.
- A
- 28
What broad capability did deep learning make practical for sensors?
- A
Eliminating the need to collect data from the environment
- B
Replacing every physical sensor with a spreadsheet
- C
Producing only binary numerical measurements from sensors
- D
Detecting, recognizing, classifying, analyzing, and predicting sensor data
Correct answer
DDetecting, recognizing, classifying, analyzing, and predicting sensor data
Explanation
A deep-learning system attached to a sensor can analyze unstructured images, audio, video, or other signals and perform tasks such as detection and classification.
- A
- 29
Which example illustrates deep learning attached to a sensor?
- A
Using a spreadsheet to calculate a loan's interest rate
- B
Using a rulebook to list every possible chess position
- C
Using a phone camera and a model to recognize the phone's owner
- D
Using a calculator to add manually selected bird measurements
Correct answer
CUsing a phone camera and a model to recognize the phone's owner
Explanation
Face ID uses a camera as a sensor and a deep-learning system to perform image classification for authentication.
- A
- 30
Which task is a typical use of deep learning in self-driving systems?
- A
Writing traffic laws into a fixed spreadsheet
- B
Replacing all cameras with manually entered labels
- C
Predicting only the vehicle's fuel cost
- D
Detecting pedestrians, stoplights, and zebra crossings
Correct answer
DDetecting pedestrians, stoplights, and zebra crossings
Explanation
Self-driving systems use multiple deep-learning algorithms for visual tasks such as pedestrian, stoplight, and zebra-crossing detection.
- A
- 31
What does the smart-binoculars example demonstrate?
- A
Deep learning is useful only for medical diagnosis
- B
A sensor can be paired with deep learning to provide useful recognition directly
- C
Novel products require permanent monopolies to succeed
- D
Unstructured data must always be converted manually before use
Correct answer
BA sensor can be paired with deep learning to provide useful recognition directly
Explanation
The binoculars use a camera and deep learning to identify birds while a user views them, illustrating how useful products can emerge from adding intelligence to sensors.
- A
- 32
What was a traditional limitation concerning model outputs?
- A
Models could predict numbers relatively easily but struggled to generate unstructured data
- B
Models could generate images easily but could not predict numerical values
- C
Models could process no inputs unless the outputs were images
- D
Models could produce unstructured outputs but not structured outputs
Correct answer
AModels could predict numbers relatively easily but struggled to generate unstructured data
Explanation
Traditional models could predict one or several numerical values, but generating images, text, audio, and other unstructured data was much harder.
- A
- 33
What is generative AI?
- A
The ability to create unstructured data such as text, images, or audio
- B
The ability to organize numerical data into spreadsheet columns
- C
A method that predicts only one probability from structured data
- D
The process of manually extracting features from raw images
Correct answer
AThe ability to create unstructured data such as text, images, or audio
Explanation
Generative AI creates unstructured outputs, including text, pictures, music, and audio, and operates as one type of deep learning.
- A
- 34
What is the relationship between generative AI and deep learning?
- A
Generative AI and deep learning are separate fields with no overlap
- B
Deep learning is one type of generative AI, and all deep learning is generative
- C
Generative AI is one type of deep learning, but deep learning includes much more
- D
Generative AI replaced deep learning as the foundation of modern models
Correct answer
CGenerative AI is one type of deep learning, but deep learning includes much more
Explanation
Generative AI runs on deep learning but represents only one portion of the broader deep-learning field.
- A
- 35
Which task is an example of generative AI?
- A
Encoding smoking status with binary values
- B
Predicting whether a borrower will repay a loan
- C
Calculating a logistic-regression coefficient
- D
Creating an image from a textual description
Correct answer
DCreating an image from a textual description
Explanation
Generating an image from text is an example of producing unstructured output, which is a central capability of generative AI.
- A
- 36
What does a multimodal model do?
- A
It can process only multiple numerical columns in a spreadsheet
- B
It produces only one type of output regardless of its input
- C
It uses multiple labels but accepts only text as input
- D
It can accept or produce multiple types of data such as text and images
Correct answer
DIt can accept or produce multiple types of data such as text and images
Explanation
Multimodal models work across data types, such as text and images, and can accept them in combinations or sequences.
- A
- 37
What is ground truth in the medical-imaging example?
- A
An image paired with a label provided by one or more human experts
- B
A label generated automatically without human review
- C
The raw image before it is captured by a medical device
- D
A model's prediction after it has been deployed
Correct answer
AAn image paired with a label provided by one or more human experts
Explanation
Ground truth consists of the input image and the corresponding expert-provided label, such as whether a mammogram shows a problem.
- A
- 38
Why can incorrect training labels reduce model quality?
- A
The model can no longer produce any probability values
- B
The model becomes unable to store numerical inputs
- C
The model may learn relationships from inaccurate examples
- D
The model automatically changes its architecture every time
Correct answer
CThe model may learn relationships from inaccurate examples
Explanation
Training labels serve as targets, so inaccurate labels introduce noise and can cause the model to learn incorrect relationships.
- A
- 39
What characteristics should high-quality training data have?
- A
It should contain only unstructured outputs and no labels
- B
It should be small, incomplete, and manually simplified
- C
It should exclude unusual cases and contain only easy examples
- D
It should be complete, comprehensive, and correctly labeled
Correct answer
DIt should be complete, comprehensive, and correctly labeled
Explanation
The lecture emphasized that training data should be complete, comprehensive, and associated with correct labels.
- A
- 40
What can neural networks sometimes tolerate during training?
- A
A complete absence of training examples
- B
A complete absence of input features
- C
Labels that are intentionally reversed for every example
- D
Some amount of noise in the training labels
Correct answer
DSome amount of noise in the training labels
Explanation
Neural networks can still perform well when a limited amount of label noise is present, although accurate and comprehensive data remain important.
- A
- 41
What does logistic regression usually produce from a vector of numerical inputs?
- A
A categorical feature table with no numerical values
- B
An unrestricted image with arbitrary dimensions
- C
A sequence of expert-written if-then rules
- D
A probability between 0 and 1
Correct answer
DA probability between 0 and 1
Explanation
Logistic regression applies a linear function followed by a sigmoid, producing a value between 0 and 1 that can be interpreted as a probability.
- A
- 42
What is the purpose of the sigmoid function in logistic regression?
- A
It transforms a scalar into a three-dimensional vector
- B
It maps a real-valued linear result to a value between 0 and 1
- C
It converts a probability into an unrestricted real number
- D
It removes all input variables except the largest one
Correct answer
BIt maps a real-valued linear result to a value between 0 and 1
Explanation
The sigmoid function, 1+e−a1, maps any real-valued input to a value between 0 and 1.
- A
- 43
In the interview example, what do the input variables represent?
- A
Image color and pixel brightness
- B
Beak length and wingspan
- C
GPA and years of work experience
- D
Age and smoking status
Correct answer
CGPA and years of work experience
Explanation
The example uses GPA and work experience as two inputs and predicts whether a graduate is called for an interview.
- A
- 44
In the interview example, what does the output variable represent?
- A
The probability that the person has a cardiac event
- B
The person's numerical GPA
- C
The number of years of work experience
- D
Whether the person is called for an interview
Correct answer
DWhether the person is called for an interview
Explanation
The binary output is 0 if the person is not called for an interview and 1 if the person is called.
- A
- 45
How is a logistic-regression model represented as a simple network?
- A
Inputs are multiplied by weights, summed with a bias, and passed through a sigmoid
- B
Inputs are randomly discarded, concatenated, and returned unchanged
- C
Inputs are converted into images, averaged, and passed through a rulebook
- D
Inputs are classified individually without being combined
Correct answer
AInputs are multiplied by weights, summed with a bias, and passed through a sigmoid
Explanation
The network view performs a weighted sum of the inputs plus an intercept, then applies the sigmoid to produce a probability.
- A
- 46
What terminology does neural-network language use for regression coefficients and intercepts?
- A
Weights and biases
- B
Features and labels
- C
Inputs and outputs
- D
Nodes and layers
Correct answer
AWeights and biases
Explanation
Neural networks call regression coefficients weights and call the intercept terms biases.
- A
- 47
Why is the network representation useful beyond merely making a formula easier to visualize?
- A
It guarantees that every prediction is directly interpretable
- B
It eliminates the need to calculate any weighted sums
- C
It makes it possible to insert multiple transformations between inputs and outputs
- D
It prevents the use of nonlinear functions
Correct answer
CIt makes it possible to insert multiple transformations between inputs and outputs
Explanation
The network representation reveals that intermediate layers can transform the input before the final output computation.
- A
- 48
Why must intermediate activation functions generally be nonlinear?
- A
Without nonlinearity, stacked linear transformations would not add useful expressive power
- B
Nonlinearity guarantees that every output is a probability
- C
Nonlinearity is required to convert every input into a category
- D
Without nonlinearity, the network cannot contain any weights
Correct answer
AWithout nonlinearity, stacked linear transformations would not add useful expressive power
Explanation
A composition of linear functions is still linear, so nonlinear activations are needed for hidden layers to learn richer transformations.
- A
- 49
What is a neuron in the lecture's terminology?
- A
A complete neural network with no input variables
- B
A data table containing only categorical variables
- C
A linear function followed by a nonlinear activation function
- D
A single output label supplied by a human expert
Correct answer
CA linear function followed by a nonlinear activation function
Explanation
A neuron receives inputs, computes a linear combination, applies an activation function, and produces one output number.
- A
- 50
What is a hidden layer?
- A
A layer containing no neurons or numerical operations
- B
A layer located between the input layer and the output layer
- C
The layer that contains the original raw data only
- D
The final layer that always produces the prediction
Correct answer
BA layer located between the input layer and the output layer
Explanation
Hidden layers are the intermediate layers where the network transforms inputs and learns representations.
- A
- 51
What is a fully connected, or dense, layer?
- A
The layer contains no activation functions or weights
- B
Only the first neuron in each layer receives an input
- C
Every neuron in one layer connects to every neuron in the next layer
- D
Each neuron connects only to itself in the following layer
Correct answer
CEvery neuron in one layer connects to every neuron in the next layer
Explanation
A dense layer connects the output of every neuron in one layer to every neuron in the next layer.
- A
- 52
How can logistic regression be characterized as a neural network?
- A
It is a network with infinitely many hidden layers
- B
It is a network that has no output activation
- C
It is a network with no hidden layers
- D
It is a network that uses only recurrent connections
Correct answer
CIt is a network with no hidden layers
Explanation
Logistic regression can be viewed as the simplest neural network arrangement, with an input directly connected to an output and no hidden layers.
- A
- 53
What primarily makes a neural network deep?
- A
The presence of many layers of transformations
- B
The presence of a single sigmoid output
- C
The use of only structured data
- D
The use of exactly two input variables
Correct answer
AThe presence of many layers of transformations
Explanation
Deep learning refers to neural networks with many layers, allowing repeated transformations of the input.
- A
- 54
What does the term feedforward neural network indicate?
- A
Information repeatedly returns to earlier layers through feedback connections
- B
The network can process only data generated by sensors
- C
Information flows through the network from left to right without recurrent loops
- D
The network contains no hidden layers
Correct answer
CInformation flows through the network from left to right without recurrent loops
Explanation
A feedforward network passes information forward from inputs through layers to outputs, unlike recurrent networks with feedback connections.
- A
- 55
What is meant by the architecture of a neural network?
- A
The numerical range of the final prediction only
- B
The physical location where the training data was collected
- C
The arrangement of its layers, neurons, connections, and activation functions
- D
The collection of labels used to train the network
Correct answer
CThe arrangement of its layers, neurons, connections, and activation functions
Explanation
Architecture describes how neurons are arranged into layers and connected, along with the activation functions used.
- A
- 56
What does an activation function receive and produce?
- A
It receives an entire dataset and produces a label table
- B
It receives several classes and produces a training dataset
- C
It receives one number and produces one number
- D
It receives one image and produces several raw pixels
Correct answer
CIt receives one number and produces one number
Explanation
An activation function operates on a scalar produced by a linear function and returns another scalar.
- A
- 57
What happens to a very negative input under the sigmoid activation function?
- A
It produces a value close to 0
- B
It produces an arbitrarily large positive value
- C
It produces exactly the original negative value
- D
It produces a value close to 1
Correct answer
AIt produces a value close to 0
Explanation
The sigmoid approaches 0 for very negative inputs and approaches 1 for very positive inputs.
- A
- 58
What is the behavior of a linear activation function?
- A
It replaces every negative input with zero
- B
It converts one scalar into several independent outputs
- C
It passes the input through without changing it
- D
It maps every input to a value between zero and one
Correct answer
CIt passes the input through without changing it
Explanation
A linear activation function simply passes its numerical input through unchanged.
- A
- 59
Which expression correctly defines the ReLU activation function?
- A
max(a,0)
- B
a2+1
- C
min(a,0)
- D
1+e−a1
Correct answer
Amax(a,0)
Explanation
ReLU is defined as max(a,0): positive inputs pass through unchanged, while negative inputs become zero.
- A
- 60
What does ReLU output when its input is negative?
- A
The unchanged negative input
- B
The absolute value of the input
- C
A value close to 1
- D
0
Correct answer
D0
Explanation
ReLU replaces negative inputs with 0.
- A
- 61
What is the usual rule of thumb for activation functions in hidden layers?
- A
Use only a linear activation to preserve the inputs
- B
Use ReLU as a strong default choice
- C
Always use sigmoid regardless of the task
- D
Always use softmax in every hidden layer
Correct answer
BUse ReLU as a strong default choice
Explanation
The lecture recommended ReLU as the default activation for hidden layers because it works well empirically.
- A
- 62
What determines the activation function used in the output layer?
- A
The color distribution of the training images
- B
The number of labels that were manually reviewed
- C
The number of GPUs used during training
- D
The nature and required range of the desired output
Correct answer
DThe nature and required range of the desired output
Explanation
The output type determines the output activation: a sigmoid suits one probability, while softmax suits multiple probabilities that sum to 1.
- A
- 63
Which output activation is appropriate for a single probability between 0 and 1?
- A
Sigmoid
- B
Linear
- C
ReLU
- D
Tanh
Correct answer
ASigmoid
Explanation
A sigmoid activation maps a scalar to a value between 0 and 1, making it appropriate for a single probability output.
- A
- 64
Which output activation is appropriate for several class probabilities that must sum to 1?
- A
Softmax
- B
Leaky ReLU
- C
Linear
- D
ReLU
Correct answer
ASoftmax
Explanation
Softmax is used when multiple output values must represent probabilities that add up to 1.
- A
- 65
When designing a neural network, which components are generally chosen by the designer?
- A
The raw input values and the true output labels
- B
The hidden layers, neurons per layer, and hidden-layer activations
- C
The physical sensors and every value in the environment
- D
The correct labels after deployment and the test examples
Correct answer
BThe hidden layers, neurons per layer, and hidden-layer activations
Explanation
The designer chooses the hidden architecture and hidden-layer activations, while the input and desired output are dictated by the problem.
- A
- 66
What does neural architecture search attempt to do?
- A
Convert unstructured data into spreadsheet rows by hand
- B
Replace all activation functions with linear functions
- C
Find effective neural-network architectures by exploring alternatives
- D
Correct every mislabeled example through manual inspection
Correct answer
CFind effective neural-network architectures by exploring alternatives
Explanation
Neural architecture search explores different architectures and uses optimization methods to identify promising designs.
- A
- 67
What is dropout primarily used for?
- A
Guaranteeing that every neuron receives every input
- B
Increasing the number of layers during every training pass
- C
Reducing overfitting by randomly omitting some nodes during training
- D
Converting categorical variables into numerical variables
Correct answer
CReducing overfitting by randomly omitting some nodes during training
Explanation
Dropout randomly removes some nodes during network passes, which can help prevent overfitting.
- A
- 68
How are neural-network weights typically learned?
- A
The model copies the values directly from the output labels
- B
A human manually assigns every coefficient after inspecting each input
- C
The weights are fixed before any training data is observed
- D
Training data, a loss function, and an optimization algorithm adjust them to reduce prediction error
Correct answer
DTraining data, a loss function, and an optimization algorithm adjust them to reduce prediction error
Explanation
The network uses training data, a loss function, and optimization procedures to learn weights and biases that reduce prediction error.
- A
- 69
How many trainable parameters does a network have with two inputs, one hidden layer of three neurons, and one output neuron, including biases?
- A
13
- B
9
- C
12
- D
15
Correct answer
A13
Explanation
The input-to-hidden connections contribute 2×3=6 weights, the hidden-to-output connections contribute 3×1=3 weights, and the four neurons contribute four biases, for a total of 6+3+4=13 parameters.
- A
- 70
Why is it important to include biases when counting neural-network parameters?
- A
Each neuron generally has a bias in addition to its incoming weights
- B
Biases replace all weights in the hidden layers
- C
Biases are required only when the output is an image
- D
Biases determine the number of input variables automatically
Correct answer
AEach neuron generally has a bias in addition to its incoming weights
Explanation
For the example network, four neurons contribute four biases, which must be added to the nine connection weights.
- A
- 71
What is the main explainability difficulty in a neural network?
- A
The network does not specify which nodes receive each input
- B
The network randomly changes its output without using its inputs
- C
The network cannot calculate intermediate numerical values
- D
The computation path is known, but assigning credit to individual input attributes is difficult
Correct answer
DThe computation path is known, but assigning credit to individual input attributes is difficult
Explanation
The flow of a particular input through the network can be computed, but the many interacting transformations make it difficult to attribute a prediction to one feature.
- A

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