Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IDEA] Chpater 2, Demonstrate outliers dropping #102

Open
eranr opened this issue Nov 8, 2023 · 0 comments
Open

[IDEA] Chpater 2, Demonstrate outliers dropping #102

eranr opened this issue Nov 8, 2023 · 0 comments

Comments

@eranr
Copy link

eranr commented Nov 8, 2023

02_end_to_end_machine_learning_project, Section 3.1 "Data Cleaning". Towards the end of the section, there is a cell defining an outlier predicate:

from sklearn.ensemble import IsolationForest

isolation_forest = IsolationForest(random_state=42)
outlier_pred = isolation_forest.fit_predict(X)

It would be helpful to show the effect of this predicate. This can be as simple as adding a followup cell with:

len(housing.iloc[outlier_pred == 1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant