Mercurial > hg > smallbox
comparison examples/Automatic Music Transcription/SMALL_AMT_DL_test.m @ 161:f42aa8bcb82f ivand_dev
debug and clean the SMALLbox Problems code
author | Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk> |
---|---|
date | Wed, 31 Aug 2011 12:02:19 +0100 |
parents | 8e660fd14774 |
children | 9c418bea7f6a |
comparison
equal
deleted
inserted
replaced
155:b14209313ba4 | 161:f42aa8bcb82f |
---|---|
29 | 29 |
30 | 30 |
31 % Defining Automatic Transcription of Piano tune as Dictionary Learning | 31 % Defining Automatic Transcription of Piano tune as Dictionary Learning |
32 % Problem | 32 % Problem |
33 | 33 |
34 SMALL.Problem = generateAMT_Learning_Problem(); | 34 SMALL.Problem = generateAMTProblem(); |
35 | 35 |
36 %% | 36 %% |
37 % Use KSVD Dictionary Learning Algorithm to Learn 88 notes (defined in | 37 % Use KSVD Dictionary Learning Algorithm to Learn 88 notes (defined in |
38 % SMALL.Problem.p) using sparsity constrain only | 38 % SMALL.Problem.p) using sparsity constrain only |
39 | 39 |
65 % (backward compatiblity with SPARCO: solver structure communicate | 65 % (backward compatiblity with SPARCO: solver structure communicate |
66 % only with Problem structure, ie no direct communication between DL and | 66 % only with Problem structure, ie no direct communication between DL and |
67 % solver structures) | 67 % solver structures) |
68 | 68 |
69 SMALL.Problem.A = SMALL.DL(1).D; | 69 SMALL.Problem.A = SMALL.DL(1).D; |
70 SMALL.Problem.reconstruct = @(x) SMALL_midiGenerate(x, SMALL.Problem); | 70 SMALL.Problem.reconstruct = @(x) AMT_reconstruct(x, SMALL.Problem); |
71 | 71 |
72 %% | 72 %% |
73 % Initialising solver structure | 73 % Initialising solver structure |
74 % Setting solver structure fields (toolbox, name, param, solution, | 74 % Setting solver structure fields (toolbox, name, param, solution, |
75 % reconstructed and time) to zero values | 75 % reconstructed and time) to zero values |
149 % (backward compatiblity with SPARCO: solver structure communicate | 149 % (backward compatiblity with SPARCO: solver structure communicate |
150 % only with Problem structure, ie no direct communication between DL and | 150 % only with Problem structure, ie no direct communication between DL and |
151 % solver structures) | 151 % solver structures) |
152 | 152 |
153 SMALL.Problem.A = SMALL.DL(2).D; | 153 SMALL.Problem.A = SMALL.DL(2).D; |
154 SMALL.Problem.reconstruct=@(x) SMALL_midiGenerate(x, SMALL.Problem); | 154 SMALL.Problem.reconstruct=@(x) AMT_reconstruct(x, SMALL.Problem); |
155 | 155 |
156 %% | 156 %% |
157 % Initialising solver structure | 157 % Initialising solver structure |
158 % Setting solver structure fields (toolbox, name, param, solution, | 158 % Setting solver structure fields (toolbox, name, param, solution, |
159 % reconstructed and time) to zero values | 159 % reconstructed and time) to zero values |