Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
layer = genNetworkMaskBF_CE(para.topology); % generate the network graph
para.preprocessing{1} = {}; % optional preprocessing for each data stream
para.preprocessing{2} = {};
if para.topology.MTL
if isfield(para.topology, 'MTL') && para.topology.MTL
para.cost_func.layer_idx = [ReturnLayerIdxByName(layer, 'cross_entropy') length(layer)]; % specify which layers are cost function layers
para.cost_func.layer_weight = [1 para.topology.MTL]; % set the weights of each cost function layer
para.preprocessing{3} = {};
Expand Down
4 changes: 2 additions & 2 deletions utils/Reader_waveform.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
% read in multichannel waveforms
if isfield(reader, 'multiArrayFiles') && reader.multiArrayFiles % when the different channels are stored in different files
for j=1:length(files{i})
[tmp_wav, fs] = Reader_waveform_core(files{i}{j}, reader.fs);
[tmp_wav, fs] = Reader_waveform_core(files{i}{j}, reader);
if j==1
wav = zeros(length(files{i}), length(tmp_wav));
end
wav(j,:) = tmp_wav;
end
else % when the different channels are stored in the same file
[wav, fs] = Reader_waveform_core(files{i}, reader.fs);
[wav, fs] = Reader_waveform_core(files{i}, reader);
end
% optional selection of channels
if isfield(reader, 'useChannel')
Expand Down