forked from lorisbaz/AttentionalRBM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherror_estimation.m
25 lines (22 loc) · 917 Bytes
/
error_estimation.m
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
clc,clear;
addpath('synth_RES/')
% Tracking Error computation
for num = 0:9
namedataset = ['exp1_num' num2str(num) '_Noise1_BG1'];
load(['../datasets/synth_single/' namedataset '.mat']); % load experiment
fprintf('\n ====== NUMBER %d ======\n',num);
for c = 1:3 % control policy
load(['synth_RES/binRBM_ctr' num2str(c) '_GAZE_' namedataset]);
error = zeros(Nframe,1);
for t = 2:Nframe
error(t) = pdist([estimate(t,1:2);double(synth(t).gt(1:2))]);
end
error = error(2:Nframe);
fprintf('Tracking error binRBM policy %d: %4.2f %4.2f \n',c,mean(error),var(error));
strored_val_mean(c,num+1) = mean(error);
strored_val_var(c,num+1) = var(error);
end
end
for c = 1:3 % control policy
fprintf('\nMean Tracking error binRBM policy %d: %4.2f %4.2f \n',c,mean(strored_val_mean(c,:)),mean(strored_val_var(c,:)));
end