Skip to content

Instantly share code, notes, and snippets.

@yuyasugano
Created November 12, 2020 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuyasugano/852cc03c199b9a631816d362b41ee67b to your computer and use it in GitHub Desktop.
Save yuyasugano/852cc03c199b9a631816d362b41ee67b to your computer and use it in GitHub Desktop.
What are standarization and normalization? Test with iris data set in Scikit-learn
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_s, clf, ax)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment