Git Product home page Git Product logo

jizhihang / cdsrc_matlab_code Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jk123vip/cdsrc_matlab_code

0.0 2.0 0.0 6.75 MB

cdSRC(Class-Dependent Sparse Representation Classifier) 基于类别的稀疏表示分类器的简单实现,MATLAB代码版本。下面是原论文地址:

Home Page: http://ieeexplore.ieee.org/xpl/login.jsp?tp=&arnumber=6957565&url=http%3A%2F%2Fieeexplore.ieee.org%2Fxpls%2Fabs_all.jsp%3Farnumber%3D6957565

MATLAB 100.00%

cdsrc_matlab_code's Introduction

这是一篇论文的仿真,论文题目是Class-Dependent Sparse Representation Classifier for Robust Hyperspectral Image Classification
效果并不是很好,只是实现基本功能,参数设置还有待仔细调整。

一共10个.m文件,各自作用简单介绍如下(实际上只用到了下面第一部分的七块代码):

cdSRC.m  主程序
normalize_data.m  用来对原始数据归一化
lda.m  用来对原始数据进行降维
select_train_data.m  用来按比例选择训练样本
select_train_data1.m  用来按个数选择训练样本
OMP.m  用来在cdOMP过程中得到关于每类的稀疏矩阵,进而求得残差作为相关度信息
cdKNN.m  用来进行cdKNN得到欧氏距离信息

cdOMP.m 和 gradient_descent.m 是用梯度下降法求解cdOMP中的优化公式,超慢超慢,几乎不能用,但其实能跑出来,没舍得删
LFDA.m 一开始降维用的这个,正确率一直上不了80,但是看了看代码找不到错误。梁云龙师兄给换了个lda,就好了。


放了几个数据集是因为正确率超低时,怀疑是数据的问题,就重找了数据,发现不是数据的影响,也没删,留这儿了。

cdsrc_matlab_code's People

Contributors

jk123vip avatar

Watchers

 avatar  avatar

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.