% This script is to combine the weights from multiple sources into one file for AFECT 1.0

% Start from base CERT directory

load Source/merged20081118-FeatImp.mat
au11=Wnew;
clear Wnew
load AdditionalAUs/AdditionalAUs3_Ting_20081202.mat
add3=Wnew;
clear Wnew
load AdditionalAUs/BlinkAUDetector/BlinkWeights-1-au45-F0.mat
blink=Wnew;
clear Wnew
load Source/MLR_SVM_20080130.mat
mlr4=W;
clear W
Wnew=au11;
Wnew(:,:,:,12:19)=add3;
Wnew(:,:,:,20)=blink;
Wnew(:,:,:,21:22)=mlr4(:,:,:,[1 3]); % We only want the level-1 (non-regression) versions

save( ['Source/AFECT_1_0_combined_' datestr(now,'yyyymmdd') '.mat'], 'Wnew' );

