7.7 - Make Predictions
Enroll to start learning
You’ve not yet enrolled in this course. Please enroll for free to listen to audio lessons, classroom podcasts and take practice test.
Practice Questions
Test your understanding with targeted questions
What does the model.predict() function do?
💡 Hint: Think about how predictions are generated.
What are the two possible outputs of the logistic regression prediction?
💡 Hint: Recall what logistic regression is used for.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What method is used to make predictions in logistic regression?
💡 Hint: Consider the function that determines forecast results.
True or False: A confusion matrix shows the number of correct and incorrect predictions.
💡 Hint: Think about what confusion matrices highlight.
1 more question available
Challenge Problems
Push your limits with advanced challenges
Given three students who studied 2, 4, and 6 hours respectively, write the code to predict their pass outcomes using a logistic regression model.
💡 Hint: Focus on how you format new data for prediction.
Evaluate the performance of a logistic regression model using the confusion matrix when actual results are [0, 1, 1, 0] and predicted values are [0, 1, 0, 0]. What do you find?
💡 Hint: Recap the definitions of TP, TN, FP, FN and calculate!
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.