comparison examples/Automatic Music Transcription/SMALL_AMT_KSVD_Err_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
31 31
32 32
33 % Defining Automatic Transcription of Piano tune as Dictionary Learning 33 % Defining Automatic Transcription of Piano tune as Dictionary Learning
34 % Problem 34 % Problem
35 35
36 SMALL.Problem = generateAMT_Learning_Problem(); 36 SMALL.Problem = generateAMTProblem();
37 TPmax=0; 37 TPmax=0;
38 for i=1:5 38 for i=1:5
39 %% 39 %%
40 % Use KSVD Dictionary Learning Algorithm to Learn 88 notes (defined in 40 % Use KSVD Dictionary Learning Algorithm to Learn 88 notes (defined in
41 % SMALL.Problem.p) using sparsity constrain only 41 % SMALL.Problem.p) using sparsity constrain only
74 % (backward compatiblity with SPARCO: solver structure communicate 74 % (backward compatiblity with SPARCO: solver structure communicate
75 % only with Problem structure, ie no direct communication between DL and 75 % only with Problem structure, ie no direct communication between DL and
76 % solver structures) 76 % solver structures)
77 77
78 SMALL.Problem.A = SMALL.DL(i).D; 78 SMALL.Problem.A = SMALL.DL(i).D;
79 SMALL.Problem.reconstruct = @(x) SMALL_midiGenerate(x, SMALL.Problem); 79 SMALL.Problem.reconstruct = @(x) AMT_reconstruct(x, SMALL.Problem);
80 80
81 %% 81 %%
82 % Initialising solver structure 82 % Initialising solver structure
83 % Setting solver structure fields (toolbox, name, param, solution, 83 % Setting solver structure fields (toolbox, name, param, solution,
84 % reconstructed and time) to zero values 84 % reconstructed and time) to zero values