ageron / ageron/handson-ml

Chapter 3: cross_val_predict()

Open
#435 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
25.6k
Forks
12.7k
PR merge metrics
No merged PRs in 30d

Description

This chapter uses `cross_val_predict()` to make cross validation predictions, and then use them to compute some metrics like confusion matrix, recall, precision, and more.

But Sklearn documentation (https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.cross_val_predict.html) says the following: "It is not appropriate to pass these predictions into an evaluation metric. Use cross_validate to measure generalization error."

So, what's the point here? Can we use `cross_val_predict()` results to compute metrics? Or am I missing something?

Thanks in advance!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.