Skip to content

Instantly share code, notes, and snippets.

@yuyasugano
Created November 12, 2020 11:58
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/7a22721567878c970bd934a5b5970eb7 to your computer and use it in GitHub Desktop.
Save yuyasugano/7a22721567878c970bd934a5b5970eb7 to your computer and use it in GitHub Desktop.
What are standarization and normalization? Test with iris data set in Scikit-learn
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.datasets import load_iris
iris = load_iris()
print(iris.DESCR)
df = pd.DataFrame(iris.data, columns=iris.feature_names)
df['target'] = iris.target
df.head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment