Skip to content

Commit f2fca87

Browse files
authored
Create VII. Evaluate the model.py
1 parent ff76de5 commit f2fca87

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
"""
2+
\ Evaluate the model /
3+
Remember the test data that you set aside waaaaaay back in chapter 3? It's finally time to test your model on it! You can use the same evaluator you made to fit the
4+
model.
5+
6+
Instructions
7+
100 XP
8+
- Use your model to generate predictions by applying best_lr.transform() to the test data. Save this as test_results.
9+
- Call evaluator.evaluate() on test_results to compute the AUC. Print the output.
10+
11+
"""
12+
# Use the model to predict the test set
13+
test_results = best_lr.transform(test)
14+
15+
# Evaluate the predictions
16+
print(evaluator.evaluate(test_results))
17+
18+
# 0.7

0 commit comments

Comments
 (0)