% Code to analyse the human-likeness results from the GENEA Challenge 2023
% (c) Gustav Eje Henter 2014, 2015, 2016, 2018, 2019, 2020, 2022, 2023

% Set up variables

clear;

outpath = 'output';

pval = 0.05;

nexp = 10;
nseg = 40;

%aspect = 4/3; % Aspect ratio for plots
aspect = 4/2;

ignoreinitial = 1; % Ignore initial (practice) screens (0 to turn off)

%%

% Run analysis of GENEA Challenge 2023 human-likeness evaluation

infile = 'human-likeness.json';
typestr = 'human-likeness';

labelstrs = {'NA','BM','BD',...
    'SA','SB','SC','SD','SE','SF','SG','SH','SI','SJ','SK','SL'};

%neworder = 1:numel(labelstrs);
neworder = [1 10 9 13 15 8 11 3 7 2 12 14 4 5 6]; % Sorted by sample median human-likeness

includesubj = true(1,200); % Set elements to false to exclude subjects

analyse_hemvip_data(infile,outpath,typestr,...
    pval,nexp,labelstrs,neworder,includesubj,aspect,ignoreinitial);