Practice Make Predictions - 7.7 | Chapter 7: Supervised Learning – Logistic Regression | Machine Learning Basics
Students

Academic Programs

AI-powered learning for grades 8-12, aligned with major curricula

Professional

Professional Courses

Industry-relevant training in Business, Technology, and Design

Games

Interactive Games

Fun games to boost memory, math, typing, and English skills

Make Predictions

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.

Learning

Practice Questions

Test your understanding with targeted questions

Question 1 Easy

What does the model.predict() function do?

💡 Hint: Think about how predictions are generated.

Question 2 Easy

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

Question 1

What method is used to make predictions in logistic regression?

fit()
predict()
train()

💡 Hint: Consider the function that determines forecast results.

Question 2

True or False: A confusion matrix shows the number of correct and incorrect predictions.

True
False

💡 Hint: Think about what confusion matrices highlight.

1 more question available

Challenge Problems

Push your limits with advanced challenges

Challenge 1 Hard

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.

Challenge 2 Hard

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.