0
0
TensorFlowml~5 mins

Prediction and evaluation in TensorFlow - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of making predictions with a trained machine learning model?
Predictions are used to apply the learned patterns from training data to new, unseen data. This helps us make decisions or understand new inputs based on what the model has learned.
Click to reveal answer
beginner
What does the 'evaluate' method in TensorFlow models do?
The 'evaluate' method calculates how well the model performs on test data by computing metrics like loss and accuracy. It helps us understand if the model generalizes well to new data.
Click to reveal answer
beginner
Why is it important to use separate data for training and evaluation?
Using separate data prevents the model from just memorizing the training examples. It ensures the model can make good predictions on new data, showing it has truly learned patterns.
Click to reveal answer
beginner
In TensorFlow, what does the 'predict' method return?
The 'predict' method returns the model's output for the input data, such as class probabilities or continuous values, depending on the task.
Click to reveal answer
beginner
What is 'loss' in model evaluation?
Loss is a number that shows how far the model's predictions are from the true answers. Lower loss means better predictions.
Click to reveal answer
What does the 'evaluate' method in TensorFlow return?
ATraining data samples
BLoss and metrics values on test data
CModel architecture summary
DPredicted labels for input data
Why should you not use training data to evaluate your model?
ABecause evaluation requires labeled data
BBecause training data is too small
CBecause training data is always noisy
DBecause it can cause the model to memorize and not generalize
What does the 'predict' method output in a classification task?
AClass probabilities or predicted classes
BLoss value
CTraining accuracy
DModel weights
Which metric is commonly used to measure model error during evaluation?
ALoss
BLearning rate
CEpoch count
DBatch size
What is the main goal of model evaluation?
ATo change model architecture
BTo increase training speed
CTo check model performance on new data
DTo generate training data
Explain how you would use a TensorFlow model to make predictions and then evaluate its performance on new data.
Think about the steps after training: first get predictions, then check how good they are.
You got /4 concepts.
    Describe why separating data into training and evaluation sets is important in machine learning.
    Consider what happens if the model sees the same data for both training and testing.
    You got /3 concepts.