Font size
WorksheetsGoogle AI-ML Quiz
Total questions: 50
Worksheet time: 38mins
What is the role of data labeling in machine learning?
Which library is used to draw and display the image?
What is the purpose of the line "plt.grid(False)"?
What variables hold the dimensions of the image?
What is the purpose of the line "plt.gray()"?
What library is used to create array type data structures in Python?
TensorFlow
NumPy
Keras
SciPy
What is the main task of traditional programming?
Inferring rules from data and labels
Compiling binary programs
Defining rules in a programming language
Gathering data and labels
What does a model represent in machine learning?
The binary compiled code in traditional programming
The rules inferred from the data and labels
The distinct patterns that denote a particular activity
The item created from the data and labels
What is the purpose of training a neural network?
To measure the loss value
To make guesses using the optimizer
To learn the relationship between input and output data
To specify the number of epochs
What is the purpose of the model.train method?
a) To calculate the relationship between X and Y
b) To make predictions for unknown X values
c) To evaluate the accuracy of the model
d) To train the model
How is the model used at runtime in machine learning?
The model is compiled into a binary program.
The model is used to gather data and labels.
The model is used to make predictions based on the inferred rules.
The model is used to define activity types.
How does machine learning differ from traditional programming in terms of rules?
Machine learning infers rules from data and labels, while traditional programming defines rules in a programming language.
Machine learning defines rules in a programming language, while traditional programming infers rules from data and labels.
Machine learning eliminates the need for rules, while traditional programming heavily relies on defined rules.
Machine learning and traditional programming both use predefined rules.
What is the code import statement for TensorFlow?
import tensorflow as tf
import numpy as np
import keras
from tensorflow import keras
What is the label associated with a sneaker in the Fashion MNIST dataset?
a) 2
b) 5
c) 7
d) 9
What is the term used to describe the answers provided along with the data in machine learning?
Labels
Rules
Programming code
Models
What is the main characteristic of neural networks when dealing with predictions?
a) Certainties
b) Probabilities
c) Exact values
d) Randomness
What is the purpose of the model.predict method?
a) To train the model
b) To calculate the relationship between X and Y
c) To make predictions for unknown X values
d) To evaluate the accuracy of the model
What does the loss value indicate during training?
The accuracy of the neural network
The number of epochs completed
The size of the input data
How good or bad the neural network is performing
Where can you learn more about TensorFlow?
a) TensorFlow.org
b) Google AI-ML course data
c) Compiling layers and neurons
d) Measuring how well the network performs
What is the advantage of using machine learning over traditional programming?
Machine learning allows for the creation of new scenarios that may not have been possible with traditional programming.
Machine learning enables the compilation of binary programs.
Machine learning simplifies the process of defining rules in a programming language.
Machine learning eliminates the need for data labeling.
What is the label associated with a coat in the Fashion MNIST dataset?
a) 0
b) 4
c) 7
d) 9
What is the result of the model.predict method?
a) A certainty value
b) A probability value
c) The actual Y value
d) The X value
What is the main task of machine learning?
Inferring rules from data and labels
Compiling binary programs
Defining rules in a programming language
Gathering data and labels
Why is the predicted value of Y slightly different from 31?
a) The model is not accurate
b) The code is incorrect
c) Neural networks deal with probabilities
d) The data points are insufficient
What is the role of the model.fit() call?
To specify the number of epochs for training
To measure the loss value for each epoch
To train the neural network by adjusting the weights and biases
To make guesses using the optimizer
What is the role of layers in a neural network?
a) To define the relationship between two sets of numbers
b) To compile neurons
c) To generate new parameters for new guesses
d) To handle the process of guessing the relationship between the numbers
What does the optimizer do during training?
Prints out the loss value for each epoch
Measures the accuracy of the neural network
Adjusts the weights and biases to improve performance
Specifies the number of epochs for training
What is the importance of having more data points for training the model?
a) It improves the accuracy of the model
b) It decreases the accuracy of the model
c) It has no effect on the model's accuracy
d) It makes the model more complex
What is the size of each clothing item image in the Fashion MNIST dataset?
a) 28x28
b) 30x30
c) 32x32
d) 24x24
What is the relationship between the X and Y variables in the provided data?
Y = 3X + 1
Y = 2X + 1
Y = X + 3
Y = X - 1
What is the label associated with an ankle boot in the Fashion MNIST dataset?
a) 2
b) 4
c) 7
d) 9
Is it necessary to complete all 500 epochs in the given example?
Yes, all 500 epochs must be completed for accurate results
No, the loss value becomes small enough after 50 epochs
It depends on the size of the input data
The example does not mention the necessity of completing all epochs
What is the purpose of the Sequential model in the given code?
a) To define the sequence of layers in the neural network
b) To flatten the input data
c) To add a layer of neurons
d) To apply activation functions to each layer
What does the Flatten layer do in the model?
a) Turns a square into a one-dimensional vector
b) Adds a layer of neurons
c) Applies the relu activation function
d) Picks the biggest value from a set of values
What is the purpose of the test set in machine learning?
To evaluate the model's performance on unseen data
To train the model on new data
To improve the accuracy of the model
To validate the model's training process
Which layer in the model applies the softmax activation function?
a) Flatten
b) Dense
c) Sequential
d) Softmax
How can you assess the model's performance on the test set?
By calling model.evaluate() and passing in the test set
By calling model.predict() and passing in the test set
By calling model.fit() and passing in the test set
By calling model.compile() and passing in the test set
What is the purpose of compiling the model?
a) To build the model
b) To train the model
c) To optimize the model
d) To evaluate the model
What does the activation function relu do if the input is less than 0?
a) Returns the input value
b) Returns 0
c) Returns 1
d) Returns -1
What is the purpose of convolutions in machine learning?
To extract important features from data
To blur inessential features in data
To detect specific patterns in data
All of the above
What is the purpose of pooling in image classification?
To reduce the overall amount of information in an image
To increase the size of the image
To detect features in the image
To remove all features from the image
What does the activation function softmax do if the output of the last layer is [0.1, 0.1, 0.05, 0.1, 9.5, 0.1, 0.05, 0.05, 0.05]?
a) Returns [0,0,0,0,1,0,0,0,0]
b) Returns [0.1, 0.1, 0.05, 0.1, 9.5, 0.1, 0.05, 0.05, 0.05]
c) Returns [0.05, 0.05, 0.05, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1]
d) Returns [0,0,0,0,0,0,0,0,1]
What is the purpose of the activation function relu?
a) To flatten the input data
b) To add a layer of neurons
c) To turn a square into a one-dimensional vector
d) To pass values of 0 or greater to the next layer in the network
What is the role of data labeling in machine learning?
What is the purpose of the activation function sigmoid in a neural network?
a) To return values between 0 and 1
b) To return values between -1 and 1
c) To return binary values
d) To return the input value
How does regularization help prevent overfitting in machine learning models?
a) By penalizing large weights in the model
b) By increasing the complexity of the model
c) By reducing the number of epochs during training
d) By removing outliers from the dataset
What is the role of the loss function in training a neural network?
a) To adjust the weights and biases of the model
b) To calculate the accuracy of the model
c) To determine the learning rate of the optimizer
d) To visualize the training process
What is the purpose of the activation function tanh in a neural network?
a) To return values between -1 and 1
b) To return values between 0 and 1
c) To return binary values
d) To return the input value
What is the role of the validation set in machine learning?
a) To evaluate the model's performance on unseen data
b) To train the model on new data
c) To improve the accuracy of the model
d) To validate the model's training process
How does the activation function softmax differ from sigmoid in a neural network?
a) Softmax returns values between 0 and 1, while sigmoid returns binary values
b) Softmax returns binary values, while sigmoid returns values between 0 and 1
c) Softmax returns the input value, while sigmoid returns values between -1 and 1
d) Softmax returns the maximum value, while sigmoid returns the minimum value
