f@2
|
1 % Modify the following variables to include the locations
|
f@2
|
2 % of the libraries and the dataset in your own system
|
f@2
|
3
|
f@2
|
4 scatnet_path = [pwd, '/../libraries/scatnet-0.2/'];
|
f@2
|
5 libsvm_compact_path = [pwd, '/../libraries/libsvm-compact-0.1/'];
|
f@2
|
6
|
f@2
|
7 gtzan_path = '/import/c4dm-datasets/gtzan/';
|
f@2
|
8
|
f@2
|
9 global results_dir;
|
f@2
|
10 results_dir = [pwd, '/../results_reeval/'];
|
f@2
|
11
|
f@2
|
12 %
|
f@2
|
13
|
f@2
|
14 fprintf('\n**********\nAdding the necessary folders to Matlab path\n**********\n');
|
f@2
|
15 run([scatnet_path, 'addpath_scatnet.m']);
|
f@2
|
16 addpath([libsvm_compact_path, 'matlab']);
|
f@2
|
17
|
f@2
|
18 mfilepath=fileparts(which(mfilename));
|
f@2
|
19 addpath(fullfile(mfilepath,'reeval/experiments/'));
|
f@2
|
20 addpath(fullfile(mfilepath,'reeval/folds/'));
|
f@2
|
21 addpath(fullfile(mfilepath,'reeval/classification/'));
|
f@2
|
22 addpath(fullfile(mfilepath,'reeval/features/'));
|
f@2
|
23
|
f@2
|
24 fprintf('\n**********\nSTARTING TO RUN EXPERIMENTS\n**********\n');
|
f@2
|
25
|
f@2
|
26 global src;
|
f@2
|
27 src = gtzan_src(gtzan_path);
|
f@2
|
28
|
f@2
|
29 fprintf('\n**********\nFEATURE SET (a)\n**********\n');
|
f@2
|
30 fprintf('\n**********\nMFCC, T=740ms\n**********\n');
|
f@2
|
31 run_experiment('mfcc_740ms');
|
f@2
|
32
|
f@2
|
33 fprintf('\n**********\nFEATURE SET (b)\n**********\n');
|
f@2
|
34 fprintf('\n**********\nTime Scattering, l=1\n**********\n');
|
f@3
|
35 run_experiment('time_scat_l1');
|
f@2
|
36
|
f@2
|
37 fprintf('\n**********\nFEATURE SET (c)\n**********\n');
|
f@2
|
38 fprintf('\n**********\nTime Scattering, l=2\n**********\n');
|
f@3
|
39 run_experiment('time_scat_l2');
|
f@2
|
40
|
f@2
|
41 fprintf('\n**********\nFEATURE SET (d)\n**********\n');
|
f@2
|
42 fprintf('\n**********\nTime and Frequency Scattering, l=2\n**********\n');
|
f@3
|
43 run_experiment('time_freq_scat_l2');
|
f@2
|
44
|
f@2
|
45 fprintf('\n**********\nFEATURE SET (e)\n**********\n');
|
f@2
|
46 fprintf('\n**********\nTime and Frequency Scattering, l=2, Adaptive Q1\n**********\n');
|
f@3
|
47 run_experiment('time_freq_scat_l2_adap_q1');
|
f@2
|
48
|
f@2
|
49 fprintf('\n**********\nFEATURE SET (f)\n**********\n');
|
f@2
|
50 fprintf('\n**********\nTime Scattering, l=3\n**********\n')
|
f@3
|
51 run_experiment('time_scat_l3');
|
f@2
|
52
|
f@2
|
53 quit;
|