Skip to content

JerryZeyu/PCA-SVM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PCA-SVM

Dataset

The dataset consists of 40 classes and each class have 10 pictures.

Usage

Download the data

# download data
$ sh download.sh

Run

$ python main.py 

In order to improve the performance, I implemented the PCA, because I don't use any library for it, the time for Eigendecomposition is very long. So you can choose to dump them when you firstly run them.

For the SVM, I have implemented different kernels, if you would like to use different kernels, you can assign the index of kernels in the main.py.

In order to avoid the overfitting, I also implemented the 5 fold cross validation.

About

Principle component analysis and support vector machines for face recognition

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published