Created
November 12, 2020 12:48
-
-
Save yuyasugano/ccc791b747f1f7f4da32d0ffc98fa9da to your computer and use it in GitHub Desktop.
What are standarization and normalization? Test with iris data set in Scikit-learn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sklearn.neighbors import KNeighborsClassifier | |
fig, axes = plt.subplots(1, 3, figsize=(12, 3)) | |
for ax, n_neighbors in zip(axes, [1, 3, 6]): | |
clf = KNeighborsClassifier(n_neighbors=n_neighbors) | |
decision_boundary(df_n, clf, ax) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment