Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Keras-1D-PCA

This code is for excuting PCA and then reducing a dimension of dataset.The prnciple of PCA is like below.

20210505_142423

This project contains three-python files. The description of each file is as follows.

PCA_going_to_2_dim.py

If you run this code, you can get a figure like below one. It means that we cannot split data in the two dimension space as a result of PCA. In this case, you have two-options to enhance the classification performance. First one is increase the dimension of PCA, Sencond one is using LDA(Linear Discriminant Analysis). In this project, I'll use the first one. Then, we have to check how many dimension to be used for classifying the data perfectly.

20210505_141306

PCA_SVM_classifier_acc_according_to_components.py

In the paragraph above, I said that we should look into how many dimensions to use. This file deals with it. Below figure represents that if we use the PCA going to 3-dimension, we can split the data with high performance.

20210505_142538

PCA_goint_to_3dim_How_to_split_the_classes.py

This file represents that how data is splited in the 3-dimension space. Below figure is the result of this file. 20210505_142513

About

Keras-1D-PCA

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages