Created
November 12, 2020 11:58
-
-
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
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
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