evaluation.plotNumberOfCPDetections( envId, savefig=savefig) # XXX To save the figure else: evaluation.plotNumberOfCPDetections( envId) # XXX To plot without saving if meanReward: if saveallfigs: savefig = mainfig.replace('main', 'main_MeanRewards') print( " - Plotting the mean rewards, and saving the plot to {} ..." .format(savefig)) evaluation.plotRegrets( envId, savefig=savefig, semilogx=semilogx, semilogy=semilogy, loglog=loglog, meanReward=True) # XXX To save the figure else: evaluation.plotRegrets( envId, semilogx=semilogx, semilogy=semilogy, loglog=loglog, meanReward=True) # XXX To plot without saving # --- Also plotting the regret if saveallfigs: print( " - Plotting the cumulative rewards, and saving the plot to {} ..."
evaluation.printLastRegrets(envId) print("\nGiving the final ranking ...") evaluation.printFinalRanking(envId) print("\n\n- Plotting the last regrets...") evaluation.plotLastRegrets(envId, boxplot=True) print("\nGiving the mean and std running times ...") evaluation.printRunningTimes(envId) evaluation.plotRunningTimes(envId) print("\nGiving the mean and std running times ...") evaluation.printMemoryConsumption(envId) evaluation.plotMemoryConsumption(envId) print("\n\n- Plotting the mean reward...") evaluation.plotRegrets(envId, meanReward=True) print("\n\n- Plotting the regret...") evaluation.plotRegrets(envId) print("\n- Plotting the probability of picking the best arm of time...") evaluation.plotBestArmPulls(envId) print("\n- Plotting the histograms of regrets...") evaluation.plotLastRegrets(envId, sharex=True, sharey=True) # Done print("Done for simulations example_of_main_singleplayer ...") notify("Done for simulations example_of_main_singleplayer ...")