df = pd.read_pickle("verif_bermude_20350317_carimam.pkl") df df.groupby('filename').prediction df.groupby('filename').prediction.mean() mean_pred_file = df.groupby('filename').prediction.mean() plt.plot(mean_pred_file);plt.show() plt.plot(mean_pred_file);plt.savefig("totore.pdf") pwd nb_pos_file = (df.groupby('filename').prediction > 0.5).sum() df df.positif = df.prediction > 0.5 df df['positif'] = df.prediction > 0.5 df nb_pos_file = (df.groupby('filename').positif).sum() nb_pos_file plt.plot(nb_pos_file);plt.savefig("totore_pos.pdf") plt.close() plt.plot(mean_pred_file);plt.savefig("totore.png") sum_pred_file = df.groupby('filename').prediction.sum() plt.plot(sum_pred_file);plt.savefig("totore_sum.png") plt.close();plt.plot(sum_pred_file);plt.savefig("totore_sum.png") plt.close();plt.plot(nb_pos_file);plt.savefig("totore_pos.png") %history -f process_verif.txt