% Produce illustrations and post-run analyses for the doctoral thesis
% on "memetic multiobjective MLP classification" (working title).
%
% Everything is evaluated using the main algorithm, written in
% C++. This code visualizes the results and the archive that stores
% the progression of the algorithm.
%
% The case studies are identified using tags, and their most recent
% results should be stored in resdir/tag/
%
% Datasets should be in datadir.
%
% Output visuals go to the analyses directory.

niemdiss_defaultsetup

%momulper_examine(setup,'nonlinear2dvolBPmo');
%momulper_examine(setup,'nonlinear2dvolBPmo3');

%momulper_examine(setup,'MSEvsMAE_try2');
%momulper_examine(setup,'classwise1');
%momulper_examine(setup,'classwise1constweight');
%momulper_examine(setup,'nonlinear2dvolBPmoMSEandMAE');
%momulper_examine(setup,'classwise1withSSW');
%momulper_examine(setup,'nonlinear2dvolBPmoCWERRandSSW');
%momulper_examine(setup,'nonlinear2dwBP');
%return

momulper_examine(setup,'linear2dBP');
momulper_examine(setup,'nonlinear2dBP');
momulper_examine(setup,'nonlinear2dwBP');
momulper_examine(setup,'nonlinear2dvolBP');
momulper_examine(setup,'nonlinear2dvolBPmo');
momulper_examine(setup,'nonlinear2dvolBPmo3');
momulper_examine(setup,'nonlinear2dvolBPoverfit');
momulper_examine(setup,'nonlinear2dvolBPmoMSEandSSW');
momulper_examine(setup,'nonlinear2dvolBPmoCWERRandSSW');
momulper_examine(setup,'classwise1');
momulper_examine(setup,'classwise1overfit');
momulper_examine(setup,'classwise1withSSW');
momulper_examine(setup,'classwise1constweight');
return

%% Select a subset for examination. Default is everything.
case_tags_all={'linear2dBP', ...
	       'nonlinear2dBP', ...
	       'nonlinear2dwBP', ...
	       'nonlinear2dvolBP',...
	       'nonlinear2dvolBPmo', ...
	       'nonlinear2dvolBPoverfit' ...
	      };

if ~exist('cases_to_examine')
  cases_to_examine=case_tags_all;
end

for itag=1:numel(cases_to_examine)
  fprintf(1,'Examine case %s\n',cases_to_examine{itag});
  momulper_examine(setup,cases_to_examine{itag});
end
