ageron / ageron/handson-ml3

[QUESTION] Why all estimators should be fitted to training data only?

Open
#58 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
14.1k
Forks
5.3k
PR merge metrics
No merged PRs in 30d

Description

Page 45 says:
>As will all estimators, it is important to fit scalers to the training data only: never use `fit()` or `fit_transform()` for anything else than training set.

Could you please explain why it is important and what happens if this recommendation is not followed?

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.