syamkakarla98 / PCA-On-IRIS-Dataset-With-Classification-Using-KNNC

In this repository , You can find the files which implements Principal Component Analysis on Iris Dataset and Classification using K-Nearest Neighbor Classifier.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PCA On IRIS Dataset With Classification Using KNNC

In this repository you will find the IRIS Dataset with dimensions150 X 4 .

  • After performing PCA on we will get four Principal Componenets.Then the resultant bargraph of the Principal Componenets is:

variance_ratio_of_iris

  • Since the first two principal components have high variance we will select them for dimensionality reduction.
  • After dimensionality reduction, the dataset will be 150 X 2.The scatter plot of two principal components is shown below:

iris_after_pca

Here comes the classification of IRIS Dataset using KNN Classifier.

  • The classification accuracy before PCA is shown below:

accuracy_before_pca

  • The classification accuracy before PCA is shown below:

accuracy_after_pca

About

In this repository , You can find the files which implements Principal Component Analysis on Iris Dataset and Classification using K-Nearest Neighbor Classifier.


Languages

Language:Python 100.0%