-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestcomponents.m
More file actions
87 lines (85 loc) · 5.91 KB
/
Copy pathtestcomponents.m
File metadata and controls
87 lines (85 loc) · 5.91 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
% first test for new 1-at-a-time components analysis
[x, hname] = system('hostname');
hname = deblank(hname);
switch hname
case 'peseta.cs.stir.ac.uk'
f101dir = '/Volumes/Extra/AllenCorpus/AllenCorpus/f101' ;
m102dir = '/Volumes/Extra/AllenCorpus/AllenCorpus/m102' ;
case 'Leslie-Smiths-MacBook-Pro.local'
f101dir = '../SoundStimuli_2019/f101' ;
m102dir = '../SoundStimuli_2019/m102' ;
otherwise
disp('Computer name not known: add paths to case statement') ;
end
weight1 = spectrotemporal2(f101dir, 'filelist_all.txt', 'fs', 16000, 'useabs', true, ...
'useonset', false, 'useoffset', false, 'weightnorm', 4, 'LIFrp', 0.025, ...
'k_fired', 0.0002, 'k_notfired', 0.001,'liftimestep', 0.0025, ...
'lifdissipation', 20, 'debug', true) ;
weight2 = spectrotemporal2(f101dir, 'filelist_all.txt', 'fs', 16000, 'useabs', true, ...
'useonset', false, 'useoffset', false, 'weightnorm', 8, 'LIFrp', 0.025, ...
'k_fired', 0.0002, 'k_notfired', 0.001,'liftimestep', 0.0025, ...
'lifdissipation', 20, 'debug', true, 'existingweights', weight1) ;
weight2a = [weight1 ; weight2] ;
weight3 = spectrotemporal2(f101dir, 'filelist_all.txt', 'fs', 16000, 'useabs', true, ...
'useonset', false, 'useoffset', false, 'weightnorm', 8, 'LIFrp', 0.025, ...
'k_fired', 0.0002, 'k_notfired', 0.001,'liftimestep', 0.0025, ...
'lifdissipation', 20, 'debug', true, 'existingweights', weight2a) ;
weight3a = [weight2a; weight3] ;
weight4 = spectrotemporal2(f101dir, 'filelist_all.txt', 'fs', 16000, 'useabs', true, ...
'useonset', false, 'useoffset', false, 'weightnorm', 8, 'LIFrp', 0.025, ...
'k_fired', 0.0002, 'k_notfired', 0.001,'liftimestep', 0.0025, ...
'lifdissipation', 20, 'debug', true, 'existingweights', weight3a) ;
weight4a = [weight3a; weight4] ;
weight5 = spectrotemporal2(f101dir, 'filelist_all.txt', 'fs', 16000, 'useabs', true, ...
'useonset', false, 'useoffset', false, 'weightnorm', 8, 'LIFrp', 0.025, ...
'k_fired', 0.0002, 'k_notfired', 0.001,'liftimestep', 0.0025, ...
'lifdissipation', 20, 'debug', true, 'existingweights', weight4a) ;
save([f101dir '/' 'f101_weights_abs.mat'], 'weight1', 'weight2', 'weight3', 'weight4', 'weight5')
weight1 = spectrotemporal2(m102dir, 'filelist_all.txt', 'fs', 16000, 'useabs', true, ...
'useonset', false, 'useoffset', false, 'weightnorm', 4, 'LIFrp', 0.025, ...
'k_fired', 0.0002, 'k_notfired', 0.001,'liftimestep', 0.0025, ...
'lifdissipation', 20, 'debug', true) ;
weight2 = spectrotemporal2(m102dir, 'filelist_all.txt', 'fs', 16000, 'useabs', true, ...
'useonset', false, 'useoffset', false, 'weightnorm', 8, 'LIFrp', 0.025, ...
'k_fired', 0.0002, 'k_notfired', 0.001,'liftimestep', 0.0025, ...
'lifdissipation', 20, 'debug', true, 'existingweights', weight1) ;
weight2a = [weight1 ; weight2] ;
weight3 = spectrotemporal2(m102dir, 'filelist_all.txt', 'fs', 16000, 'useabs', true, ...
'useonset', false, 'useoffset', false, 'weightnorm', 8, 'LIFrp', 0.025, ...
'k_fired', 0.0002, 'k_notfired', 0.001,'liftimestep', 0.0025, ...
'lifdissipation', 20, 'debug', true, 'existingweights', weight2a) ;
weight3a = [weight2a; weight3] ;
weight4 = spectrotemporal2(m102dir, 'filelist_all.txt', 'fs', 16000, 'useabs', true, ...
'useonset', false, 'useoffset', false, 'weightnorm', 8, 'LIFrp', 0.025, ...
'k_fired', 0.0002, 'k_notfired', 0.001,'liftimestep', 0.0025, ...
'lifdissipation', 20, 'debug', true, 'existingweights', weight3a) ;
weight4a = [weight3a; weight4] ;
weight5 = spectrotemporal2(m102dir, 'filelist_all.txt', 'fs', 16000, 'useabs', true, ...
'useonset', false, 'useoffset', false, 'weightnorm', 8, 'LIFrp', 0.025, ...
'k_fired', 0.0002, 'k_notfired', 0.001,'liftimestep', 0.0025, ...
'lifdissipation', 20, 'debug', true, 'existingweights', weight4a) ;
save([m102dir '/' 'm102_weights_abs.mat'], 'weight1', 'weight2', 'weight3', 'weight4', 'weight5') ;
weight1 = spectrotemporal2(m102dir, 'filelist_all.txt', 'fs', 16000, 'useabs', true, ...
'useonset', true, 'useoffset', false, 'weightnorm', 4, 'LIFrp', 0.025, ...
'k_fired', 0.0002, 'k_notfired', 0.001,'liftimestep', 0.0025, ...
'lifdissipation', 20, 'debug', true) ;
weight2 = spectrotemporal2(m102dir, 'filelist_all.txt', 'fs', 16000, 'useabs', true, ...
'useonset', true, 'useoffset', false, 'weightnorm', 8, 'LIFrp', 0.025, ...
'k_fired', 0.0002, 'k_notfired', 0.001,'liftimestep', 0.0025, ...
'lifdissipation', 20, 'debug', true, 'existingweights', weight1) ;
weight2a = [weight1 ; weight2] ;
weight3 = spectrotemporal2(m102dir, 'filelist_all.txt', 'fs', 16000, 'useabs', true, ...
'useonset', true, 'useoffset', false, 'weightnorm', 8, 'LIFrp', 0.025, ...
'k_fired', 0.0002, 'k_notfired', 0.001,'liftimestep', 0.0025, ...
'lifdissipation', 20, 'debug', true, 'existingweights', weight2a) ;
weight3a = [weight2a; weight3] ;
weight4 = spectrotemporal2(m102dir, 'filelist_all.txt', 'fs', 16000, 'useabs', true, ...
'useonset', true, 'useoffset', false, 'weightnorm', 8, 'LIFrp', 0.025, ...
'k_fired', 0.0002, 'k_notfired', 0.001,'liftimestep', 0.0025, ...
'lifdissipation', 20, 'debug', true, 'existingweights', weight3a) ;
weight4a = [weight3a; weight4] ;
weight5 = spectrotemporal2(m102dir, 'filelist_all.txt', 'fs', 16000, 'useabs', true, ...
'useonset', true, 'useoffset', false, 'weightnorm', 8, 'LIFrp', 0.025, ...
'k_fired', 0.0002, 'k_notfired', 0.001,'liftimestep', 0.0025, ...
'lifdissipation', 20, 'debug', true, 'existingweights', weight4a) ;
save([m102dir '/' 'm102_weights_absonset.mat'], 'weight1', 'weight2', 'weight3', 'weight4', 'weight5') ;