Skip to content

Instantly share code, notes, and snippets.

View aswinmohanme's full-sized avatar
🎯
Focusing

Aswin Mohan aswinmohanme

🎯
Focusing
View GitHub Profile
# It is convention that X holds the Feature array and y holds the label array
X = iris.data
y = iris.target
# The Dimensions are retured using the shape attribute
print(iris.data.shape)
print(iris.target.shape)
# Every coloums is a feature
# Every Row is an observation
print(iris.feature_names)
# Prints the Target Species
print(iris.target)
# PRitn the names of the species
print(iris.target_names)
# Import the Iris Dataset
from sklearn.datasets import load_iris
# Really load Iris
iris = load_iris()