Artificial Neural Networks
- 81Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is artificial intelligence, and what capability is it intended to reproduce?
81 questions
- 1
What is artificial intelligence, and what capability is it intended to reproduce?
Model answer
Artificial intelligence is the design of computing systems that perform tasks associated with human intelligence, such as recognizing patterns and making decisions.
Explanation
The content describes AI as an effort to make machines think in ways similar to humans.
- 2
Why can recognizing a familiar face be considered an example of intelligent processing?
Model answer
Recognition can depend on combining many features, such as facial characteristics, hair, and the spacing between the eyes, to identify a person.
Explanation
The example illustrates how a person draws on multiple details to recognize Albert Einstein.
- 3
How does the content contrast a computer’s mathematical ability with its ability to act in an everyday environment?
Model answer
A computer can calculate a square root quickly, but acting in a kitchen requires understanding objects and surroundings, which is much harder to program.
Explanation
The comparison illustrates that computational speed does not necessarily provide practical understanding of the physical world.
- 4
When and by whom was the term artificial intelligence first coined, according to the content?
Model answer
John McCarthy coined the term in 1956 at the Dartmouth Conference.
Explanation
The content identifies the conference as the occasion when the term was introduced.
- 5
What did IBM’s Deep Blue demonstrate in the late 1990s?
Model answer
Deep Blue demonstrated that a computer could defeat a world chess champion.
Explanation
Its chess victory is presented as a major milestone in AI.
- 6
How do search engines use information about a user’s activity?
Model answer
They use information such as previous searches to help predict what the user may want next.
Explanation
The content gives Google search suggestions as an example of prediction based on past activity.
- 7
Give two examples of AI-related predictions or recognition in everyday services described in the content.
Model answer
Netflix predicts movies a person may want to watch, and Facebook can recognize friends in uploaded photos.
Explanation
Both examples rely on patterns or information gathered from prior user activity.
- 8
How does the content distinguish machine learning from deep learning?
Model answer
Machine learning uses statistical methods to analyze information in data; deep learning is a broader area within machine learning that commonly uses neural-network computations.
Explanation
Deep learning is described as a subset of machine learning focused largely on neural networks.
- 9
How does biological inspiration help explain the name and design of artificial neural networks?
Model answer
Artificial neural networks are named for biological neural networks and use connected computational units inspired by biological neurons.
Explanation
The content uses the biological network as a simplified analogy for understanding artificial networks.
- 10
What role do dendrites play in a biological neural network?
Model answer
Dendrites receive signals from surrounding neurons.
Explanation
The content compares dendrites to the receiving ends of a neuron.
- 11
What role does an axon play in a biological neural network?
Model answer
An axon carries a signal away from a neuron toward other parts of the network.
Explanation
The content compares the axon to a pathway along which information travels between layers or neurons.
- 12
What is the role of synapses in communication between biological neurons?
Model answer
Synapses are connection points that enable signals to pass between neurons.
Explanation
The content describes neurons as interconnected at synapses.
- 13
How does the content relate learning in biological and artificial neural networks?
Model answer
It compares learning from past activity in biological networks with updating an artificial network through backpropagation.
Explanation
The analogy is used to explain how prior activity can influence learning in both systems.
- 14
What happens in the biological-neuron analogy when a signal reaches a threshold?
Model answer
The neuron transmits a signal through its axon when the threshold is reached.
Explanation
The content uses threshold-triggered firing to introduce activation in artificial networks.
- 15
What corresponds to a biological neuron in an artificial neural network?
Model answer
An artificial computational unit, often called a neuron or node, corresponds to a biological neuron.
Explanation
The content explicitly relates artificial neurons to biological neurons.
- 16
What is the role of an artificial network’s input layer?
Model answer
The input layer receives the variables or features from the data being processed.
Explanation
Each input unit receives data associated with an input variable.
- 17
What is the role of the hidden layer in an artificial neural network?
Model answer
The hidden layer processes information passed from the input layer and forwards it toward the output layer.
Explanation
The content describes hidden layers as performing the network’s internal computations.
- 18
What does the output layer provide?
Model answer
The output layer provides the network’s final result or prediction.
Explanation
It is the layer where the final output is presented.
- 19
Why are weights applied to input variables?
Model answer
Weights indicate the relative importance of input variables by amplifying or reducing their contributions.
Explanation
An input with a larger weight has a comparatively greater influence on the network’s calculation.
- 20
How is the weighted sum of inputs calculated for a neuron?
Model answer
Multiply each input by its corresponding weight and add the products together.
Explanation
For example, the sum for inputs x1​ and x2​ is x1​w1​+x2​w2​.
- 21
What does an activation function determine?
Model answer
It determines whether a neuron activates and passes information onward, based on its input and activation rule.
Explanation
The content compares activation in an artificial neuron to threshold-triggered firing in a biological neuron.
- 22
In the example with inputs 0.6 and 1, weights 0.5 and 0.8, and threshold 1.0, what happens?
Model answer
The weighted sum is 1.1, which exceeds the threshold of 1.0, so the neuron activates.
Explanation
The sum is 0.6(0.5)+1(0.8)=1.1.
- 23
What are bias values used for in a neural network?
Model answer
Biases provide an additional adjustable contribution to a layer’s calculation, beyond the weighted input values.
Explanation
The content compares biases to the intercept in a regression equation.
- 24
How are weights and biases associated with layers in a neural network?
Model answer
Weights connect units between layers, while biases can be included for hidden layers and the output layer.
Explanation
The content distinguishes input-to-hidden weights from hidden-to-output weights and describes layer biases.
- 25
Why may the internal operation of a hidden layer be difficult to interpret?
Model answer
The hidden layer performs internal computations that are not directly presented as an easily interpretable explanation; it is described as a black box.
Explanation
The content contrasts hidden-layer processing with the final output shown by the output layer.
- 26
What determines how many hidden layers and neurons a network contains?
Model answer
The architecture is selected for the task, and a network may contain different numbers of hidden layers and units.
Explanation
The content notes that hidden-layer structure can vary and later gives a square-root heuristic as one possible guide.
- 27
How does the number of hidden units relate to a network’s learning capacity, according to the content?
Model answer
The content states that a neural network can learn any function if it has enough hidden units.
Explanation
Hidden units provide the network’s capacity to learn patterns from its input data.
- 28
What is backpropagation?
Model answer
Backpropagation sends information about output error back through the network so that its weights can be adjusted.
Explanation
The content presents backpropagation as the mechanism through which the network learns from its errors.
- 29
How does a neural network use the difference between its prediction and the desired output?
Model answer
It calculates an error from the difference and uses that error to update its weights in an effort to improve later predictions.
Explanation
The error is fed back through the network during backpropagation.
- 30
What is the purpose of updating weights during training?
Model answer
Weight updates aim to reduce prediction error and move the network’s outputs closer to the desired values.
Explanation
The content describes repeated weight changes as the means of improving the network’s output.
- 31
Why must a differentiable error function be used in the described learning process?
Model answer
The process uses derivatives of the error to guide weight changes, so the error function must be differentiable.
Explanation
The content states that taking a derivative is necessary for the backpropagation procedure it describes.
- 32
How should prediction error change as a model approaches the desired output?
Model answer
The error should decrease toward zero as the output approaches the desired value.
Explanation
The content identifies decreasing error as the goal of training.
- 33
What is the learning rate, and what does it control?
Model answer
The learning rate controls the size or speed of weight updates during learning.
Explanation
The content refers to the learning-rate parameter as controlling how quickly the network learns.
- 34
What can happen if the learning rate is too high?
Model answer
The network may fail to learn properly because its updates are too large or rapid.
Explanation
The content warns that an excessively fast learning rate can prevent proper learning.
- 35
What can happen if the learning rate is too low?
Model answer
Learning can become excessively slow because the network’s updates are too small.
Explanation
The content warns that a very small learning rate does not allow the algorithm to learn efficiently.
- 36
What is an epoch in neural-network training?
Model answer
An epoch is a pass through the training data during the learning process.
Explanation
The content describes training as repeating the data-fitting and error-correction process over multiple epochs.
- 37
Why does neural-network training need stopping criteria?
Model answer
Stopping criteria prevent training from continuing indefinitely and specify when the algorithm should stop.
Explanation
The content gives error thresholds and a maximum number of iterations as stopping criteria.
- 38
Name two stopping criteria described for neural-network training.
Model answer
Training can stop when the desired mean squared error is reached or when the maximum number of epochs or iterations is reached.
Explanation
The content identifies an error target and a maximum training duration as possible criteria.
- 39
What does a threshold parameter do in the described training procedure?
Model answer
It can specify a target for the derivative of the error function that serves as a stopping condition.
Explanation
The content distinguishes this training threshold from the activation example by describing it as an error-derivative stopping criterion.
- 40
What information does the Iris dataset contain in the example?
Model answer
It contains 150 flowers, four measurement variables, and three species, with 50 examples of each species.
Explanation
The four measurements are sepal length, sepal width, petal length, and petal width.
- 41
What is the prediction goal in the Iris example?
Model answer
The goal is to predict a flower’s species from its four measured attributes.
Explanation
The species is the target, and the flower measurements are the input features.
- 42
Why must the Iris species labels be converted to a different representation for the neural network?
Model answer
Categorical species labels are converted into separate binary indicator columns so the network can use them as outputs.
Explanation
The content describes representing the three species with columns containing zeroes and ones.
- 43
What does scaling the Iris measurements accomplish in the example?
Model answer
It puts the input measurements on a scaled numerical representation before they are passed to the network.
Explanation
The content scales the four input variables as part of preparing the data for neural-network training.
- 44
How is the Iris dataset divided into training and testing data in the example?
Model answer
The example uses 100 rows for training and the next 50 rows for testing, an approximately 70/30 split.
Explanation
The content describes this division as a practical training-and-testing arrangement.
- 45
Why might the data be shuffled before dividing it into training and testing sets?
Model answer
Shuffling can reduce potential bias from the order in which examples appear in the dataset.
Explanation
The content describes shuffling as an optional step used to avoid order-related bias.
- 46
What square-root heuristic for choosing hidden layers is described in the content?
Model answer
Repeatedly take the square root of the number of input variables, round to a practical number of neurons, and continue until the result is close to one.
Explanation
The content presents this as a rough way to choose layer sizes, not as a universal rule.
- 47
Using the described heuristic, what hidden-layer structure is suggested for four input variables?
Model answer
The example uses one hidden layer with two neurons.
Explanation
The first square root of four is two, and taking the square root again gives approximately one, so the process stops.
- 48
What does the maximum-iteration parameter control in the neural-network example?
Model answer
It sets the maximum number of training iterations the network is allowed to perform.
Explanation
The content explains that this limit prevents the algorithm from running indefinitely.
- 49
What does a setting that displays training progress at intervals do?
Model answer
It controls how often the program reports information about training progress, such as the error.
Explanation
The content notes that progress reporting is optional and does not determine whether training occurs.
- 50
Why does the example use a sum-of-squares error function?
Model answer
It measures prediction error by summing squared differences, producing a nonnegative error value that can be used in training.
Explanation
The content recommends sum of squares as an error measure for the neural-network example.
- 51
Why can two runs of the same neural-network command produce different weights or iteration counts?
Model answer
The network’s initial weights and training path can vary between runs, so the fitted weights and number of iterations may differ.
Explanation
The content notes that repeated runs can produce different weights and may stop after different numbers of iterations.
- 52
How can a trained network produce a species prediction from its output values?
Model answer
It can select the species corresponding to the largest of the three output scores or probabilities.
Explanation
The content describes converting three species scores into a predicted species by choosing the maximum.
- 53
How is the performance of the Iris model evaluated in the example?
Model answer
Predicted species are compared with the actual test-set species using a confusion matrix.
Explanation
The content uses the test labels to assess the model’s predictions.
- 54
What accuracy does the Iris model achieve when 47 of 50 test predictions are correct?
Model answer
Its accuracy is 94%.
Explanation
The accuracy is 47/50=0.94, or 94%.
- 55
What is the optional purpose of passing previously learned weights into another training run?
Model answer
It allows the next run to start from the earlier weights rather than treating the new run as entirely separate.
Explanation
The content describes reusing weights as an additional training step that may help with larger datasets.
- 56
What is exploratory data analysis used for before modeling?
Model answer
It helps assess variables, distributions, missing values, outliers, and relationships so that data can be prepared appropriately for modeling.
Explanation
The content emphasizes examining variables before choosing inputs for a model.
- 57
Why should missing values and outliers be checked before modeling?
Model answer
They may require treatment before analysis and can affect the data used to fit a model.
Explanation
The content identifies missing values and outliers as issues to investigate in individual variables.
- 58
What does a variable’s distribution reveal during exploratory analysis?
Model answer
It shows how values are spread and can reveal skewness or departures from a roughly normal distribution.
Explanation
The content uses histograms and box plots to inspect variable distributions.
- 59
How can a box plot or histogram help assess a numerical variable?
Model answer
These plots help visualize its distribution and can reveal skewness, unusual values, or potential outliers.
Explanation
The content uses both plots to inspect variables such as age, daily rate, and income.
- 60
What is the purpose of comparing a variable with the outcome during exploratory analysis?
Model answer
The comparison can reveal whether values or categories of that variable are associated with different outcome rates.
Explanation
The content compares employee characteristics with attrition to judge whether variables may be useful.
- 61
What does a categorical-variable table help an analyst examine?
Model answer
It helps compare the outcome counts or rates across the variable’s categories.
Explanation
The content uses tables to assess categorical factors such as business travel and department.
- 62
Why might a variable be excluded from a model after exploratory analysis?
Model answer
It may be uninformative, constant, redundant, or show little meaningful relationship with the outcome.
Explanation
The content recommends excluding variables that do not provide useful information for the prediction task.
- 63
How does the content compare variable selection in random forests and neural networks?
Model answer
It says tree-based methods such as random forests can identify useful variables through their splitting process, while a neural network does not automatically decide which inputs are important.
Explanation
The content therefore treats exploratory variable assessment as especially important for neural-network models.
- 64
Why can a neural network have poor accuracy when irrelevant variables are passed as inputs?
Model answer
A neural network learns from the variables it receives but, as described, does not independently determine which ones should be excluded.
Explanation
The content warns that irrelevant inputs can impair the model’s accuracy unless variables are assessed beforehand.
- 65
Why should an employee identifier generally not be used as a predictive feature?
Model answer
An identifier used only to distinguish employees does not describe a meaningful characteristic for predicting attrition.
Explanation
The content gives employee count or identifier-like fields as examples of variables that may have no predictive importance.
- 66
Why should a constant variable, such as a field with the same value for every employee, generally be excluded?
Model answer
A constant variable cannot distinguish among observations and therefore supplies no useful variation for prediction.
Explanation
The content notes that fields such as employee count or standard hours may be constant across the records.
- 67
Why might a total variable be used instead of several component variables that sum to it?
Model answer
The total captures information from its components, so including both the total and all components may add redundant information.
Explanation
The content illustrates this with monthly salaries and a total salary variable.
- 68
Why should correlations between variables be examined before modeling?
Model answer
They can reveal variables that are related or potentially redundant, which may affect the choice of inputs.
Explanation
The content lists checking relationships among variables as part of exploratory analysis.
- 69
What was the size of the employee dataset examined in the attrition example, and approximately what share had left?
Model answer
The dataset contained 2,940 employees, of whom 474, or approximately 16%, had experienced attrition.
Explanation
The content reports 2,940 records and estimates the attrition share at about 16%.
- 70
What pattern did the content report between employee age and attrition?
Model answer
Employees who left tended to be in younger age groups than those who did not, so age was treated as potentially important.
Explanation
The reported age ranges were approximately 28–39 for employees with attrition and 30–43 for those without it.
- 71
What did the analysis suggest about business travel and attrition?
Model answer
The reported attrition proportions across business-travel categories were similar, so the content treated business travel as having little apparent effect.
Explanation
The content says the category ratios did not differ substantially.
- 72
What did the analysis suggest about daily rate and attrition?
Model answer
Daily rate showed little apparent difference between employees with and without attrition and was considered a weak candidate predictor.
Explanation
The content describes daily rates as broadly distributed without a substantial attrition-related difference.
- 73
What did the analysis conclude about department and attrition in the examined dataset?
Model answer
It found no substantial difference in attrition across departments, so department was not considered important in that dataset.
Explanation
The content reports that the proportions were broadly similar among departments.
- 74
What relationship between distance from home and attrition was reported?
Model answer
Employees living farther from work were described as more likely to experience attrition.
Explanation
The content identifies distance from home as a potentially important factor based on the comparison.
- 75
How should education level or education field be assessed for possible inclusion in an attrition model?
Model answer
Compare attrition rates across their categories; include a variable if particular categories show meaningful differences in attrition.
Explanation
The content recommends using category-level differences to judge the usefulness of these categorical variables.
- 76
What did the content report about monthly income and attrition?
Model answer
It described monthly income as associated with attrition and noted that employees at different income levels showed different attrition patterns.
Explanation
The content identifies monthly income as potentially important but does not establish a precise direction for every income range.
- 77
Why did the content recommend transforming monthly income before modeling?
Model answer
Monthly income was strongly right-skewed, so a transformation such as a logarithm could reduce the skew before the variable is used.
Explanation
The content warns that a skewed distribution may cause a model to learn disproportionately from the range containing most observations.
- 78
What relationship between overtime and attrition was reported?
Model answer
Employees who worked overtime were described as more likely to experience attrition than those who did not.
Explanation
The content reports a higher attrition likelihood among employees working overtime.
- 79
How should a strongly skewed salary-hike variable be prepared for modeling, according to the content?
Model answer
It should be transformed, for example with a Box–Cox transformation, before being used as an input.
Explanation
The content recommends transforming the skewed salary-hike distribution rather than using it unchanged.
- 80
Why might environment satisfaction be excluded from the attrition model described?
Model answer
The content reports similar attrition patterns across its categories, suggesting little apparent relationship with attrition in that dataset.
Explanation
The recommendation is based on the absence of a substantial difference in the reported category comparisons.
- 81
What does the content say about the standard-hours field in the employee data?
Model answer
It has the same value for all employees, so it provides no useful variation and can be ignored.
Explanation
The content reports that standard hours were 80 for everyone.

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