First, download the MATLAB code for computing Wasserstein Barycenter found here: https://github.com/bobye/WBC_Matlab

Then, link the three attached auxilliary code files that are included:

- wb_processing.m
- faces_processing.m
- run_experiment.m

Then to run our WB experiment on the faces dataset, run the following commands:

faces = load('face_data.mat');
dbfaces = faces_process(faces);
[time_values, time_std, accuracy_values, accuracy_std, ~, ~] = run_experiment(10, 5, dbfaces);

Here, 10 indicates we want to run the projection from d = 2 to 10 and 5 indicates the support size of the barycenter.
The output time_values and accuracy_values are the arrays containing the time taken and the accuracy of the solution found i the projected dimension (averaged over 20 trials) with respect to the solution found in the original dimension.
