An open API service indexing awesome lists of open source software.

https://github.com/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.
https://github.com/syamkakarla98/pca-on-iris-dataset-with-classification-using-knnc

Last synced: 6 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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](https://user-images.githubusercontent.com/36328597/41186940-a25e37e6-6bbd-11e8-957d-a2e505518d0a.png)

* 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](https://user-images.githubusercontent.com/36328597/41186972-19500960-6bbe-11e8-8f6f-4bf752598e47.JPG)

### Here comes the classification of **IRIS Dataset** using **KNN Classifier**.
* The classification accuracy before **PCA** is shown below:

![accuracy_before_pca](https://user-images.githubusercontent.com/36328597/41187067-1bf1fb18-6bc0-11e8-8eff-efb3a4fc89e9.JPG)

* The classification accuracy before **PCA** is shown below:

![accuracy_after_pca](https://user-images.githubusercontent.com/36328597/41187074-373fddb8-6bc0-11e8-882c-79bfcb93e533.JPG)