1. Home
  2. Explore
  3. Computer Science
  4. Artificial Neural Networks

Study methods

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

Artificial Neural Networks

  • 51Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: AI and Learning

What is the central goal of artificial intelligence as described in the material?

51 questions

  1. 1

    What is the central goal of artificial intelligence as described in the material?

    1. A

      To ensure computers only perform arithmetic faster than people

    2. B

      To make every computer operate using biological cells

    3. C

      To build computing systems that can perform tasks associated with human thinking

    4. D

      To replace statistical analysis with fixed rules

    Correct answer
    C

    To build computing systems that can perform tasks associated with human thinking

    Explanation

    Artificial intelligence aims to create systems that perform tasks involving human-like abilities, such as recognizing information and making decisions.

  2. 2

    Why can recognizing a familiar person in an image be a challenging task for a computer?

    1. A

      Recognition can depend on combining many visual features, such as facial structure and hair

    2. B

      Recognition requires the computer to know the person's spoken language

    3. C

      A computer cannot receive image data as input

    4. D

      Every image contains only one visual feature

    Correct answer
    A

    Recognition can depend on combining many visual features, such as facial structure and hair

    Explanation

    The material describes recognition as drawing on many features at once, rather than relying on a single cue.

  3. 3

    Which contrast illustrates a challenge in developing general-purpose artificial intelligence?

    1. A

      A computer can make decisions only when no data is available

    2. B

      A computer may calculate a square root quickly but struggle to understand and act in an everyday setting

    3. C

      A computer can recognize objects only when they are described in text

    4. D

      A computer may store images but cannot perform arithmetic

    Correct answer
    B

    A computer may calculate a square root quickly but struggle to understand and act in an everyday setting

    Explanation

    The material contrasts computers' strength at calculations with the difficulty of understanding objects and acting appropriately in an ordinary environment.

  4. 4

    When and where was the term “artificial intelligence” first coined, according to the material?

    1. A

      In the early 2000s at a conference on internet search

    2. B

      In 1956 at a chess championship

    3. C

      In the late 1990s at an IBM research meeting

    4. D

      In 1956 at the Dartmouth Conference

    Correct answer
    D

    In 1956 at the Dartmouth Conference

    Explanation

    The material states that John McCarthy coined the term at the Dartmouth Conference in 1956.

  5. 5

    What event is described as a major public milestone for artificial intelligence in the late 1990s?

    1. A

      A neural network identifying all friends in a photograph

    2. B

      A search engine introducing one-hot encoding

    3. C

      A computer completing a household task without instructions

    4. D

      IBM's Deep Blue defeating the world chess champion

    Correct answer
    D

    IBM's Deep Blue defeating the world chess champion

    Explanation

    The material identifies Deep Blue's victory over the world chess champion as a major late-1990s milestone.

  6. 6

    Which pairing correctly matches an application of AI with the example given in the material?

    1. A

      Google Search — calculating an employee's monthly salary

    2. B

      Netflix — predicting movies a viewer may want to watch

    3. C

      Facebook — estimating the square root of a number

    4. D

      Netflix — converting categorical labels into numerical columns

    Correct answer
    B

    Netflix — predicting movies a viewer may want to watch

    Explanation

    The material gives Netflix recommendations as an example of using viewing history to predict what a person may want to watch next.

  7. 7

    What is machine learning, as characterized in the material?

    1. A

      A method limited to processing photographs

    2. B

      A biological process that occurs at synapses

    3. C

      Using statistical methods to learn from and analyze data

    4. D

      Writing fixed instructions for every possible input

    Correct answer
    C

    Using statistical methods to learn from and analyze data

    Explanation

    Machine learning is described as using statistical methods to understand and analyze information from data.

  8. 8

    How are deep learning and machine learning related in the material?

    1. A

      Deep learning is a broader area within machine learning and is associated with neural-network computations

    2. B

      Machine learning is a subset of deep learning and excludes neural networks

    3. C

      Deep learning refers only to calculations performed without data

    4. D

      Deep learning and machine learning are unrelated fields

    Correct answer
    A

    Deep learning is a broader area within machine learning and is associated with neural-network computations

    Explanation

    The material presents deep learning as a subset or broader area within machine learning and connects it with neural networks.

  9. 9

    In the biological-neural-network analogy, what is a neuron most closely compared with in an artificial neural network?

    1. A

      A processing unit that receives and passes information

    2. B

      A dataset used only for testing

    3. C

      A stopping condition for training

    4. D

      A single output category

    Correct answer
    A

    A processing unit that receives and passes information

    Explanation

    The biological neuron is used as an analogy for an artificial neural network's processing units, which handle information.

  10. 10

    What role do dendrites play in the biological neural-network description?

    1. A

      They carry the final prediction to the output layer

    2. B

      They determine the learning rate

    3. C

      They receive signals from surrounding neurons

    4. D

      They calculate the error after training

    Correct answer
    C

    They receive signals from surrounding neurons

    Explanation

    Dendrites are described as receiving signals from nearby neurons.

  11. 11

    What is the role of an axon in the biological analogy?

    1. A

      It carries information away from a neuron toward other parts of the network

    2. B

      It assigns importance to input variables by setting weights

    3. C

      It measures the difference between actual and desired outputs

    4. D

      It converts output labels into one-hot columns

    Correct answer
    A

    It carries information away from a neuron toward other parts of the network

    Explanation

    The axon is compared with the pathway through which information travels from one layer or unit toward another.

  12. 12

    What function do synapses serve in the biological-neural-network account?

    1. A

      They divide a dataset into training and testing subsets

    2. B

      They select the model's stopping criterion

    3. C

      They connect neurons and help transmit signals between them

    4. D

      They calculate the number of hidden layers

    Correct answer
    C

    They connect neurons and help transmit signals between them

    Explanation

    Synapses are described as connection points that enable signals to pass between neurons.

  13. 13

    Which sequence best describes the basic flow of information through an artificial neural network?

    1. A

      Inputs are weighted, processed in hidden layers, and used to produce outputs

    2. B

      Errors are sent to the input layer before any inputs are processed

    3. C

      Outputs are weighted first, then converted into input variables

    4. D

      Inputs are converted directly into final labels without intermediate processing

    Correct answer
    A

    Inputs are weighted, processed in hidden layers, and used to produce outputs

    Explanation

    The network receives input variables, processes them through weighted connections and hidden layers, and produces an output.

  14. 14

    Why are weights applied to input variables?

    1. A

      They replace the need for an output layer

    2. B

      They ensure every input contributes equally to the prediction

    3. C

      They record which rows belong to the testing dataset

    4. D

      They allow the network to represent the relative importance of different inputs

    Correct answer
    D

    They allow the network to represent the relative importance of different inputs

    Explanation

    Weights determine how strongly each input variable contributes to the network's calculations.

  15. 15

    What does the summation function do in a basic artificial neuron?

    1. A

      It compares predicted labels with the names of input variables

    2. B

      It combines input values with their corresponding weights

    3. C

      It transforms every category into a separate dataset

    4. D

      It chooses the number of training examples

    Correct answer
    B

    It combines input values with their corresponding weights

    Explanation

    The summation function forms a weighted combination of the inputs, such as adding each input multiplied by its weight.

  16. 16

    What is the purpose of an activation function in the network description?

    1. A

      It determines whether a unit's processed signal should be passed onward

    2. B

      It assigns the initial names to output categories

    3. C

      It selects which input variable should be removed from the dataset

    4. D

      It divides the data into training and testing portions

    Correct answer
    A

    It determines whether a unit's processed signal should be passed onward

    Explanation

    The activation function determines whether the neuron's processed value is sufficient to activate it and pass information onward.

  17. 17

    What is the role of a bias in a neural network?

    1. A

      It prevents the network from using hidden layers

    2. B

      It adds a learned adjustment that input values and weights alone may not capture

    3. C

      It ensures that every input weight has the same value

    4. D

      It stores the actual output labels for the testing set

    Correct answer
    B

    It adds a learned adjustment that input values and weights alone may not capture

    Explanation

    The material compares a bias to an intercept: it captures an additional adjustment not represented by the weighted inputs alone.

  18. 18

    In the example with inputs 0.60.60.6 and 111, weights 0.50.50.5 and 0.80.80.8, and threshold 1.01.01.0, why does the unit activate?

    1. A

      The weighted sum is 1.11.11.1, which exceeds the threshold

    2. B

      The largest input is 111, which is below the threshold

    3. C

      The weighted sum is 0.80.80.8, which equals the threshold

    4. D

      The two weights add to 1.01.01.0, which exceeds the threshold

    Correct answer
    A

    The weighted sum is 1.11.11.1, which exceeds the threshold

    Explanation

    The weighted sum is (0.6)(0.5)+(1)(0.8)=1.1(0.6)(0.5) + (1)(0.8) = 1.1(0.6)(0.5)+(1)(0.8)=1.1. Since 1.11.11.1 is greater than the threshold of 1.01.01.0, the unit activates.

  19. 19

    What does backpropagation use to guide changes to a neural network's weights?

    1. A

      The error between the network's output and the desired output

    2. B

      The number of input variables alone

    3. C

      The activation threshold without any output comparison

    4. D

      The order in which categories appear in a dataset

    Correct answer
    A

    The error between the network's output and the desired output

    Explanation

    Backpropagation sends information about output error backward through the network so that weights can be adjusted.

  20. 20

    What is the basic purpose of updating weights during training?

    1. A

      To make all input variables contribute equally

    2. B

      To prevent the network from processing training data again

    3. C

      To increase the number of output categories in every iteration

    4. D

      To reduce prediction error over repeated training iterations

    Correct answer
    D

    To reduce prediction error over repeated training iterations

    Explanation

    Weights are modified using the calculated error, with the goal of improving predictions and reducing error.

  21. 21

    Why can the weights connecting inputs to hidden units differ from those connecting hidden units to outputs?

    1. A

      They govern different connections at different stages of the network

    2. B

      They are required to be identical but are stored separately

    3. C

      Input-to-hidden weights measure error, while hidden-to-output weights measure dataset size

    4. D

      Only the hidden-to-output weights are modified during training

    Correct answer
    A

    They govern different connections at different stages of the network

    Explanation

    The network has separate weights for connections between the input and hidden layers and between the hidden and output layers; both can be updated during learning.

  22. 22

    What does the learning-rate parameter control?

    1. A

      The size of weight adjustments made during learning

    2. B

      The number of output classes in the dataset

    3. C

      The number of input variables passed to the network

    4. D

      The amount of missing data allowed in a feature

    Correct answer
    A

    The size of weight adjustments made during learning

    Explanation

    The learning rate controls how quickly or slowly the network changes its weights as it learns.

  23. 23

    What is a risk of setting the learning rate too high?

    1. A

      The network will be unable to calculate any weighted sums

    2. B

      The network will necessarily stop before processing its inputs

    3. C

      Weight updates may be too large for the network to learn reliably

    4. D

      The training set will automatically become the testing set

    Correct answer
    C

    Weight updates may be too large for the network to learn reliably

    Explanation

    The material warns that learning too quickly can prevent proper learning, because updates may be excessively large.

  24. 24

    What is a risk of setting the learning rate too low?

    1. A

      The network may learn too slowly to make sufficient progress

    2. B

      The network will always produce a zero error immediately

    3. C

      The output layer will receive no weights

    4. D

      The dataset will become normally distributed

    Correct answer
    A

    The network may learn too slowly to make sufficient progress

    Explanation

    A very small learning rate can slow learning and make it difficult for the model to reach a useful solution.

  25. 25

    Why should an error function be differentiable for the described backpropagation process?

    1. A

      The process uses derivatives to divide data into equal groups

    2. B

      The process uses derivatives of error to determine how weights should change

    3. C

      The process requires every prediction to be a categorical label

    4. D

      The process needs to convert input variables into text

    Correct answer
    B

    The process uses derivatives of error to determine how weights should change

    Explanation

    The material states that the error function should support differentiation, since derivatives are used when passing error backward and updating weights.

  26. 26

    Why can a sum-of-squares error measure be useful in the described neural-network setup?

    1. A

      Squaring errors gives a nonnegative quantity that can be differentiated

    2. B

      It identifies which input variables are categorical

    3. C

      It removes the need to compare predicted and desired values

    4. D

      It guarantees that every prediction matches the desired output

    Correct answer
    A

    Squaring errors gives a nonnegative quantity that can be differentiated

    Explanation

    The material recommends a sum of squared errors in part because it yields positive error values and supports taking derivatives.

  27. 27

    What is an epoch in the training description?

    1. A

      A single input variable in the dataset

    2. B

      A hidden-layer bias added to each neuron

    3. C

      A predicted probability for one output class

    4. D

      A pass through the training process that can be repeated as the network learns

    Correct answer
    D

    A pass through the training process that can be repeated as the network learns

    Explanation

    The material describes training as proceeding over repeated iterations, also referred to as epochs.

  28. 28

    Why use stopping criteria such as a target error or a maximum number of iterations?

    1. A

      To guarantee that the model has no prediction errors

    2. B

      To stop training when a desired condition is met or a preset limit is reached

    3. C

      To ensure that every epoch uses a different output variable

    4. D

      To force the model to use every available feature

    Correct answer
    B

    To stop training when a desired condition is met or a preset limit is reached

    Explanation

    A target error and a maximum iteration count are stopping criteria that prevent training from continuing indefinitely.

  29. 29

    How should a categorical target with three species be prepared for a neural network in the described example?

    1. A

      Remove the target and train only on the input variables

    2. B

      Represent the categories with three indicator columns containing zeros and ones

    3. C

      Replace all three species with a single continuous measurement

    4. D

      Use the species names as numeric weights for each input

    Correct answer
    B

    Represent the categories with three indicator columns containing zeros and ones

    Explanation

    The material explains that the three species should be represented using separate zero-and-one indicator columns, a form of one-hot encoding.

  30. 30

    Why scale input variables before fitting the neural network in the example?

    1. A

      To convert the test set into the training set

    2. B

      To put input variables on a comparable scale before model fitting

    3. C

      To eliminate the need to evaluate predictions

    4. D

      To ensure that all target categories have the same name

    Correct answer
    B

    To put input variables on a comparable scale before model fitting

    Explanation

    The example scales the input variables before fitting, so they are represented on a comparable scale for the network.

  31. 31

    What is the hidden-layer sizing heuristic described in the material?

    1. A

      Choose the number of hidden units by counting missing values

    2. B

      Set every hidden layer to the same size as the training dataset

    3. C

      Repeatedly take square roots of the number of inputs, rounding as needed, to estimate successive layer sizes

    4. D

      Use one hidden neuron for every output class and no others

    Correct answer
    C

    Repeatedly take square roots of the number of inputs, rounding as needed, to estimate successive layer sizes

    Explanation

    The material presents a heuristic that repeatedly takes square roots to estimate the number of units in successive hidden layers, with rounding as needed.

  32. 32

    Using that heuristic, how many hidden layers and hidden neurons are suggested for four input variables?

    1. A

      Two hidden layers with four neurons each

    2. B

      Two hidden layers with two neurons each

    3. C

      One hidden layer with two neurons

    4. D

      One hidden layer with four neurons

    Correct answer
    C

    One hidden layer with two neurons

    Explanation

    The heuristic starts with the square root of four, giving two neurons; taking the square root again is approximately one, so the example uses one hidden layer with two neurons.

  33. 33

    What is the role of the input layer in the network architecture?

    1. A

      It receives the dataset's input variables and passes their information onward

    2. B

      It computes the final comparison against the desired output

    3. C

      It converts the prediction probabilities into the original training rows

    4. D

      It contains the stopping criterion for training

    Correct answer
    A

    It receives the dataset's input variables and passes their information onward

    Explanation

    Each input-layer unit receives information from an input variable and passes it through weighted connections to the next layer.

  34. 34

    In a three-class prediction example, how is the predicted class selected from the network's output?

    1. A

      Choose the class with the most input variables

    2. B

      Choose the class corresponding to the largest predicted score or probability

    3. C

      Choose the first class listed in the dataset

    4. D

      Choose the class corresponding to the smallest predicted score

    Correct answer
    B

    Choose the class corresponding to the largest predicted score or probability

    Explanation

    The material describes selecting the predicted species by identifying which of the output columns has the maximum value.

  35. 35

    Why can repeated runs of the same neural-network command produce different weights?

    1. A

      The desired outputs are discarded after the first run

    2. B

      The number of output classes is randomly selected each time

    3. C

      The network may begin with randomly assigned weights

    4. D

      The input variables change their names after every run

    Correct answer
    C

    The network may begin with randomly assigned weights

    Explanation

    The material notes that weights may be assigned randomly at the start, so the learned weights can differ across runs.

  36. 36

    Why should a model's predictions be assessed on a testing dataset separate from the data used to train it?

    1. A

      To increase the number of hidden layers after training

    2. B

      To ensure that the model's training error is exactly zero

    3. C

      To evaluate how the learned model performs on data it did not use for fitting

    4. D

      To make the testing labels available during weight updates

    Correct answer
    C

    To evaluate how the learned model performs on data it did not use for fitting

    Explanation

    The example fits the model on training data and uses separate test data to assess its predictions.

  37. 37

    In the iris example, what does a confusion matrix help assess?

    1. A

      How predicted species compare with the actual species labels

    2. B

      How often the network updates its weights

    3. C

      How many hidden layers the model should contain

    4. D

      How the input variables were scaled

    Correct answer
    A

    How predicted species compare with the actual species labels

    Explanation

    The confusion matrix compares predicted classes with the actual classes, allowing the model's classification performance to be assessed.

  38. 38

    What was the reported accuracy of the iris neural-network model on the test set in the example?

    1. A

      Seventy percent

    2. B

      Fifty percent

    3. C

      Ninety-four percent

    4. D

      Ninety-nine percent

    Correct answer
    C

    Ninety-four percent

    Explanation

    The material reports that 47 of 50 test examples were classified correctly, corresponding to 94% accuracy.

  39. 39

    What is the purpose of exploratory data analysis before building a model?

    1. A

      To make every variable normally distributed without transformation

    2. B

      To replace the need for a test dataset

    3. C

      To understand variables and identify data issues or patterns that may affect modeling

    4. D

      To guarantee that a neural network will select only useful variables

    Correct answer
    C

    To understand variables and identify data issues or patterns that may affect modeling

    Explanation

    Exploratory analysis examines variables and their distributions, relationships, and potential issues before modeling decisions are made.

  40. 40

    In the employee-attrition dataset described, approximately what fraction of employees had attrition?

    1. A

      About fifty percent

    2. B

      About sixteen percent

    3. C

      About eighty-four percent

    4. D

      About five percent

    Correct answer
    B

    About sixteen percent

    Explanation

    The material reports 474 employees with attrition out of approximately 2,940, or about sixteen percent.

  41. 41

    What conclusion did the material draw about age and employee attrition in its exploratory analysis?

    1. A

      Older employees appeared uniformly more likely to have attrition

    2. B

      Age was constant across all employees

    3. C

      Younger employees appeared more likely to have attrition than older employees

    4. D

      Age showed no visible relationship with attrition

    Correct answer
    C

    Younger employees appeared more likely to have attrition than older employees

    Explanation

    The described plot suggested that employees in younger age groups were more likely to have attrition than those in older groups, so age was treated as potentially informative.

  42. 42

    What conclusion did the material draw about business travel and attrition in the described dataset?

    1. A

      Every travel category had exactly the same number of employees

    2. B

      Frequent travel was the only cause of attrition

    3. C

      The compared travel categories showed no substantial difference in attrition

    4. D

      Business travel was a continuous variable requiring a logarithmic transformation

    Correct answer
    C

    The compared travel categories showed no substantial difference in attrition

    Explanation

    The material compares attrition ratios across business-travel categories and describes them as similar, suggesting little apparent impact in that dataset.

  43. 43

    Why did the material suggest that daily rate could be ignored as a predictor in its example?

    1. A

      Its distribution and attrition comparisons showed little apparent difference

    2. B

      It was identical to the employee-count variable

    3. C

      It had missing values for every employee

    4. D

      It was the target label rather than an input variable

    Correct answer
    A

    Its distribution and attrition comparisons showed little apparent difference

    Explanation

    The daily rate appeared broadly distributed across employees, and the comparison showed little apparent difference between attrition groups.

  44. 44

    What relationship between distance from home and attrition was reported in the exploratory analysis?

    1. A

      Employees living farther from work appeared more likely to have attrition

    2. B

      Distance from home had no usable numerical values

    3. C

      Distance from home was constant for all employees

    4. D

      Employees living farther from work were guaranteed not to leave

    Correct answer
    A

    Employees living farther from work appeared more likely to have attrition

    Explanation

    The material describes distance from home as an important factor, with greater distances associated with a higher likelihood of attrition in the displayed data.

  45. 45

    What pattern did the material report for overtime and attrition?

    1. A

      Employees not working overtime always had attrition

    2. B

      Overtime was reported as a constant value for everyone

    3. C

      Overtime had no relationship to attrition in the described comparison

    4. D

      Employees working overtime appeared more likely to have attrition

    Correct answer
    D

    Employees working overtime appeared more likely to have attrition

    Explanation

    The material states that employees who worked overtime had a greater likelihood of attrition than those who did not.

  46. 46

    Why did the material recommend transforming monthly income before using it in a model?

    1. A

      Monthly income was strongly skewed, so a logarithmic transformation could reduce the skew

    2. B

      Monthly income was constant for every employee

    3. C

      Monthly income was already normally distributed and needed no examination

    4. D

      Monthly income contained only category labels and could not be transformed

    Correct answer
    A

    Monthly income was strongly skewed, so a logarithmic transformation could reduce the skew

    Explanation

    The material describes monthly income as highly skewed and recommends using a logarithmic transformation rather than passing the raw variable directly.

  47. 47

    Why should a variable such as employee count be removed when it has the same value for every record?

    1. A

      A constant variable is equivalent to a missing-value indicator

    2. B

      A constant variable must be used as the output layer

    3. C

      A constant variable provides no useful variation for distinguishing outcomes

    4. D

      A constant variable always determines the target perfectly

    Correct answer
    C

    A constant variable provides no useful variation for distinguishing outcomes

    Explanation

    A feature that is constant across records cannot help distinguish among observations, so the material recommends excluding it.

  48. 48

    If a dataset contains both several monthly salary values and their total, what does the material recommend?

    1. A

      Use only the month with the largest salary for every employee

    2. B

      Consider using the total instead of all the component values because it summarizes them

    3. C

      Remove the total and replace it with the employee identifier

    4. D

      Always use every monthly value and the total together

    Correct answer
    B

    Consider using the total instead of all the component values because it summarizes them

    Explanation

    The material warns that a total can capture information from its component variables and recommends avoiding redundant inputs by using the total rather than all components together.

  49. 49

    Why does the material emphasize feature selection and data preparation for neural networks?

    1. A

      Neural networks do not calculate errors for individual inputs

    2. B

      Neural networks automatically remove every redundant feature before training

    3. C

      Neural networks may use all supplied variables without independently identifying irrelevant ones

    4. D

      Neural networks cannot accept more than one input variable

    Correct answer
    C

    Neural networks may use all supplied variables without independently identifying irrelevant ones

    Explanation

    Unlike the described tree-based methods, the neural network does not automatically determine which supplied variables are unimportant, so careful preparation can improve accuracy.

  50. 50

    What should be checked for each variable before modeling, according to the material?

    1. A

      Only whether it has more than one distinct value

    2. B

      Only whether it appears in the testing dataset

    3. C

      Only the variable's name and position in the dataset

    4. D

      Missing values, outliers, distribution, and possible relationships or redundancy with other variables

    Correct answer
    D

    Missing values, outliers, distribution, and possible relationships or redundancy with other variables

    Explanation

    The material recommends examining variables for missing values, outliers, skew or distribution concerns, and relationships that may make features redundant.

  51. 51

    What was noted about standard hours in the employee dataset?

    1. A

      It was missing for most employees

    2. B

      The value was the same for every employee, so it was not informative

    3. C

      It was the strongest predictor of attrition

    4. D

      It was the categorical target with three classes

    Correct answer
    B

    The value was the same for every employee, so it was not informative

    Explanation

    The material says standard hours had the same value for everyone and could therefore be ignored as a predictor.

Question 1 of 51
Question 1 of 51

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent