Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

DEPARTMENT OF ARTIFICIAL

INTELLIGENCE & DATA SCIENCE

Course: Machine Learning Course Code: CSL-60


Semester: 6 Department: AI & DS
Laboratory No: Name of Subject Teacher:
Name of Student: Roll Id:
EXPERIMENT NO:10
Aim: Case study on Classification using IRIS data set.

Theory: Iris Dataset is considered as the Hello World for data science. It contains five
columns namely – Petal Length, Petal Width, Sepal Length, Sepal Width, and Species
Type. Iris is a flowering plant, the researchers have measured various features of the
different iris flowers and recorded them digitally.

You can download the Iris.csv file from the above link. Now we will use the Pandas library
to load this CSV file, and we will convert it into the dataframe. read_csv() method is used
to read CSV files.

Code:
import os
for dirname, _, filenames in os.walk('/kaggle/input'):
for filename in filenames:
print(os.path.join(dirname, filename))
import matplotlib.pyplot as plt
import seaborn as sns
import warnings
warnings.filterwarnings('ignore')
iris = pd.read_csv('/kaggle/input/iris/Iris.csv')
iris.head()
iris.shape
iris.info()

Output:
Learning Objectives: Our main objective is to classify the flowers into their respective species -
Iris setosa, Iris virginica and Iris versicolor by using various possible plots.

Conclusion/Learning outcome: As can be seen from the above info, it is a balanced


dataset.

You might also like