Giter Club home page Giter Club logo

dataming_pca's Introduction

DataMing_PCA

数据挖掘课程,数据降维,PCA人脸识别,lab1

实验简介

实验样本四十个人的人脸灰度图像,每个人分别有10张图像
训练样本:每个人的前五张图像
测试样本:每个人的后五张图像
实验过程:
_数据降维阶段:_读取训练数据,PCA 降维,将样本映射到特征空间
_测试过程:_读取测试数据,三阶近邻分类器分类,测试分类结果的准确性
要点:
_三阶近邻分类器:_本实验采用K-N近邻分类器,求与待判别的样本点,最近的k个训练样本点(注意:这些训练样本已知类别),取这k个训练样本点所属类别中最多的类别,作为待判别测试样本的类别标签。
_PCA过程的目的:_减少三阶近邻分类器的计算次数

文件描述

source.m是该实验的MATLAB版本源代码,其实亲测过octave上使用也没问题
pca_final.py是该实验的python3版本代码,要运行改代码需要安装numpy和matplotlib
ORL文件夹中存放着本次实验的样本数据

dataming_pca's People

Contributors

ikaixu avatar

Stargazers

 avatar  avatar  avatar  avatar FerC avatar  avatar

Watchers

James Cloos avatar

Forkers

rjxshr1 xiweila

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.