• Stars
    star
    16
  • Rank 1,268,958 (Top 26 %)
  • Language
    Julia
  • License
    MIT License
  • Created about 9 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Julia code for the paper S. Gu, L. Zhang, W. Zuo, and X. Feng, “Projective Dictionary Pair Learning for Pattern Classification,” In NIPS 2014

ProjectiveDictionaryPairLearning.jl

previous DPL.jl

Build Status Coverage Status

Installation

Pkg.add("ProjectiveDictionaryPairLearning")

Demo

using ProjectiveDictionaryPairLearning
dpldemo()

The output should be something similar to this

The running time for DPL training is : 6.79 s
The running time for DPL testing is : 0.23 s
Recognition rate for DPL is : 97.579%

Comparison with MATLAB version

Actually the MATLAB version runs much faster as below.

The running time for DPL training is : 3.12 s
The running time for DPL testing is : 0.17 s
Recognition rate for DPL is : 0.976

Usage

Prepare Data and Labels

  • Training Data TrData: Column Vectors (Should be normalize!d)
  • Training Label TrLabel: Class Label Integers in A Row
  • Testing Data TtData: Column Vectors (Should also be normalize!d )
  • Testing Label TtLabel: Class Label Integers in A Row

Set Parameters

DictSize = 30
τ = 0.05
λ = 0.003
γ = 0.0001

DPL Training

DictMat, EncoderMat = TrainDPL(TrData, TrLabel, DictSize, τ, λ, γ)

DPL Testing

PredictLabel, Error, Distance = ClassificationDPL(TtData, DictMat, EncoderMat, DictSize)

Advanced Usage

Inner functions have been exposed to use.

  • initialization.jl: DataMat, D, P, DataInvMat, A = initialization(Data, Label, DictSize, τ, λ, γ)
  • updateA!.jl: updateA!(A, D, DataMat, P, τ, DictSize)
  • updateD!.jl: updateD!(D, A, DataMat)
  • updateP!.jl: updateP!(P, A, DataInvMat, DataMat, τ)

Dependencies


PAPER

The original matlab code is for the paper:

The julia port of this code is for the paper:

Qu, Xiaofeng; Zhang, David; Lu, Guangming; and Guo, Zhenhua, “Door knob hand recognition system,” Will appear in Systems, Man, and Cybernetics: Systems, IEEE Transactions on.

Authors' Pages

Downloads

DATASET

The example feature dataset (YaleB_Jiang) used in this code is from Dr. Zhuolin Jiang: http://www.umiacs.umd.edu/~zhuolin/projectlcksvd.html.

For the experiments on AR and caltech 101 dataset, we also used the feature datasets provided by Dr. Jiang.

For experiment on UCF50, we used the Action bank feature provided in: http://www.cse.buffalo.edu/~jcorso/r/actionbank/. Please refer to our paper for the detailed experimental setting.


CONTACT

If you have problems with the paper, the algorithm or the original matlab code, please contact us at [email protected] or [email protected].

If you have problems with the julia code, please contact us at [email protected].

Thanks

  • A thank you to afternone, who optimized the julia code

TODO

  • Add test
  • NEW add more tests
  • Optimize the performance
  • NEW optimize the performance further
  • Proper packaging

More Repositories

1

PolyU_beamer_theme

An Unofficial Beamer Theme For PolyU and COMP
TeX
57
star
2

daily_planner

latex template for daily work plan
28
star
3

PolyU_thesis_template

TeX
25
star
4

python-stl

python 3D mesh loading and displaying
C
10
star
5

notes-spanish

西班牙语相关
7
star
6

imreadeval

Python
7
star
7

test-driven-machine-learning

Python
7
star
8

polyu-comp-research-proposal-template

An unofficial research proposal template following the guide of Department of Computing, The Hong Kong Polytechnic University.
TeX
2
star
9

beamer_slides_template_zh-CN

Shell
2
star
10

toolbox-graph

A toolbox to process graph and triangulated meshes - http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=5355&objectType=FILE
MATLAB
2
star
11

mbc

Try to improve MBC code. ref: M. Yang, L. Zhang, S. Shiu, and D. Zhang, “Monogenic Binary Coding: An Efficient Local Feature Extraction Approach to Face Recognition,” IEEE Trans. on Information Forensics and Security, vol. 7, no. 6, pp. 1738-1751, Dec. 2012.
MATLAB
2
star
12

lumi.gq

小米智能家居套装 | 绿米联创科技有限公司
HTML
2
star
13

tcc

A minimal c\c++ env in windows. Using this repo, I can grow my c coding ability.
C
1
star
14

mycv

TeX
1
star
15

TikZHardWay

Learn TikZ The Hard Way
1
star
16

MachineLearningWithJulia.jl

Julia
1
star
17

pcaeval

Jupyter Notebook
1
star
18

hexo-site-3p0

个人主页 quxiaofeng.me 的源码。使用 hexo,markdown,mathjax。并用 travis-ci.org 自动部署。
HTML
1
star
19

comp210tut

HK PolyU COMP210 Tutorials 2011 fall
MATLAB
1
star
20

COMP435p

HK PolyU COMP435p Biometrics Authentication 2012 Spring Tutorials
CSS
1
star
21

quxiaofeng

Config files for my GitHub profile.
1
star
22

methods.ml

CSS
1
star
23

swig-cpp-class-dll-wrapping-test

C++
1
star
24

JuliaPerformanceVerification.jl

Julia
1
star