forked from jackculpepper/sparsenet-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
40 lines (26 loc) · 953 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Sparsenet starter kit!
Author: Jack Culpepper
License: BSD
checkgrad.m was written by Carl Rasmussen
sfigure.m was written by Daniel Eaton
This program is related to the paper by Bruno and David:
B. A. Olshausen and D. J. Field. Emergence of simple-cell receptive field
properties by learning a sparse code for natural images. Nature,
381(6583):607-9, jun 1996.
(Bruno is my PhD advisor.)
Assumes:
IMAGES.mat is in ../data/IMAGES.mat
lbfgsb-stewart is in ../lbfgsb-stewart
To get started:
- Run unittest in matlab.
- Use ~jack/bin/gqview to look in the state dir.
To run positive only coefficients:
- Comment out this line in unittest.m:
nb = zeros(1,M); % bound type (none)
For a new dataset:
- Add a case to the switch statement.
For a new optimization procedure:
- Add a case to the switch statement.
For a new model:
- Write a check and objfun for a new inference objfun.
- Write a check and objfun for a new learning objfun.