annotate dss/experiments/exp_time_scat_l2.m @ 1:9a37f107f089

Corrected contact mail and included shell script mention.
author Francisco Rodriguez Algarra <f.rodriguezalgarra@qmul.ac.uk>
date Wed, 21 Oct 2015 11:21:26 +0100
parents 503d0475274e
children
rev   line source
f@0 1 % Script to reproduce the experiments leading to the results provided in the
f@0 2 % Table 2 of the paper "Deep Scattering Spectrum" by J. Andén and S. Mallat.
f@0 3
f@0 4 % M=2 scattering
f@0 5
f@0 6 preffix = 'time_scat_l2_';
f@0 7
f@0 8 N=5*2^17;
f@0 9
f@0 10 global src;
f@0 11
f@0 12 fparam.filter_type = {'gabor_1d','morlet_1d'};
f@0 13 fparam.Q = [8 2];
f@0 14 fparam.J = T_to_J(8192*2,fparam);
f@0 15
f@0 16 options.M = 2;
f@0 17
f@0 18 Wop = wavelet_factory_1d(N, fparam, options);
f@0 19
f@0 20 feature_fun = {@(x)(format_scat(log_scat(renorm_scat(scat(x,Wop)))))};
f@0 21
f@0 22 db = prepare_database(src,feature_fun);
f@0 23 db.features = single(db.features)
f@0 24 db = svm_calc_kernel(db,'gaussian','square',1:8:size(db.features,2));
f@0 25
f@0 26 optt.kernel_type = 'gaussian';
f@0 27 optt.C = 2.^[0:4:8];
f@0 28 optt.gamma = 2.^[-16:4:-8];
f@0 29 optt.search_depth = 3;
f@0 30 optt.full_test_kernel = 1;
f@0 31
f@0 32 classify(db, optt, preffix);