Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- % Scalogram
- Fs = 10000;
- filb = cwtfilterbank('SignalLength',10000,'SamplingFrequency',Fs,...
- 'VoicesPerOctave',12);
- sg = vibhistory.data(1,1:10000);
- [cfs,freq] = wt(filb,sg);
- t = (0:9999)/Fs;
- figure;
- pcolor(t,freq,abs(cfs));
- % GoogLeNet
- rng default
- [imgTr,imgVal] = splitEachLabel(allImg,0.8,'randomized');
- net = googlenet;
- lgraph = layerGraph(net);
- options = trainingOptions('sgdm',...
- 'MiniBatchSize',15,...
- 'MaxEpochs',120,...
- 'InitialLearnRate',1e-4,...
- 'ValidationData',imgVal,...
- 'ValidationFrequency',10,...
- 'Verbose',1,...
- 'ExecutionEnvironment','cpu',...
- 'Plots','training-progress');
- rng default
- mygn = trainNetwork(imgTr,lgraph,options);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement