Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the difference between err1_spatical and err1 #17

Closed
jiaxue-ai opened this issue Oct 13, 2016 · 2 comments
Closed

the difference between err1_spatical and err1 #17

jiaxue-ai opened this issue Oct 13, 2016 · 2 comments

Comments

@jiaxue-ai
Copy link

when I adjusted your code to the method that use colour images only with 3D filter (get ride of fusion layer), an interesting thing I find is that the result of err1 and err1_spatical are always different, observe from the code, err1_spatial is extracted from dagnn.Loss layers

function stats = extractStats(net)
% -------------------------------------------------------------------------
sel = find(cellfun(@(x) isa(x,'dagnn.Loss'), {net.layers.block})) ;
stats = struct() ;
for i = 1:numel(sel)
stats.(net.layers(sel(i)).name) = net.layers(sel(i)).block.average ;
end

and err1 is computed by comparing difference between label and prediction

function [err1, err5] = error_multiclass(opts, labels, predictions)
% -------------------------------------------------------------------------
[~,predictions] = sort(predictions, 3, 'descend') ;
error = ~bsxfun(@eq, predictions, reshape(labels, 1, 1, 1, [])) ;
err1 = sum(sum(sum(error(:,:,1,:)))) ;
err5 = sum(sum(sum(min(error(:,:,1:5,:),[],3)))) ;

so what's the relation between them?

@jiaxue-ai
Copy link
Author

and the predictions for err1 is that

[frame_predictions{:,fr}] = deal(net.vars(pred_layers).value) ;

@feichtenhofer
Copy link
Owner

feichtenhofer commented Oct 31, 2016

err1 is the final test error which uses both streams and multiple frames for predicitions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants