The following script was used to generate the graphs of Figure 14 of the article "Behavioral Diversity Generation in Autonomous Exploration Through Reuse of Past Experience" by Fabien C. Y. Benureau and Pierre-Yves Oudeyer.
The full code is available and is distributed under the Open Science License. For any questions, remarks or difficulties running this code, contact fabien.benureau@gmail.com.
import experiments
import dotdot
import graphs
from fig14_cluster import dissimilar
expcfgs = dissimilar()
results = experiments.load_results(expcfgs, 'tcov', mask=(True, False, True))
graphs.output_notebook()
graphs.reuse_quantiles(results[:1], y_max=360000, src_quantiles=(0, 10, 100), tgt_quantiles=(0, 10, 100))
graphs.reuse_quantiles(results[1:], y_max=360000)
The cluster provenance code examines all the exploration data files of this experiment to check and compare their embedded provenance data. Note that for this experiment, the cluster jobs were run under two different code revisions: one for the first 25 repetitions, and another for 75 more. No difference impacting the experiment behavior exists between the two versions.
import provenance
prov_data = provenance.cluster(dissimilar()) # this may take a minute.
print(prov_data.message())