5508d6730a37f9aff49549901ff8682898e14b5d,brats/evaluate.py,,main,#,27

Before Change


    plt.ylabel("Loss")
    plt.xlabel("Epoch")
    plt.xlim((0, len(training_df.index)))
    plt.legend(loc="upper right")
    plt.savefig("loss_graph.png")


if __name__ == "__main__":

After Change


    plt.savefig("validation_scores_boxplot.png")
    plt.close()

    if os.path.exists("./training.log"):
        training_df = pd.read_csv("./training.log").set_index("epoch")

        plt.plot(training_df["loss"].values, label="training loss")
        plt.plot(training_df["val_loss"].values, label="validation loss")
        plt.ylabel("Loss")
        plt.xlabel("Epoch")
        plt.xlim((0, len(training_df.index)))
        plt.legend(loc="upper right")
        plt.savefig("loss_graph.png")


if __name__ == "__main__":
    main()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: ellisdg/3DUnetCNN
Commit Name: 5508d6730a37f9aff49549901ff8682898e14b5d
Time: 2018-03-20
Author: david.ellis@unmc.edu
File Name: brats/evaluate.py
Class Name:
Method Name: main


Project Name: suavecode/SUAVE
Commit Name: 10f95c7c122a9c48f10369adfaf5775e89912c7b
Time: 2020-09-01
Author: mclarke2@stanford.edu
File Name: trunk/SUAVE/Plots/Mission_Plots.py
Class Name:
Method Name: plot_drag_components


Project Name: suavecode/SUAVE
Commit Name: b402c83347127b3b7500251f038799d804c7d80f
Time: 2020-03-05
Author: mclarke2@stanford.edu
File Name: trunk/SUAVE/Plots/Mission_Plots.py
Class Name:
Method Name: plot_drag_components


Project Name: scikit-optimize/scikit-optimize
Commit Name: a99564aa688e14ccee5f09eceb6ecc0fd28813d9
Time: 2016-04-19
Author: manojkumarsivaraj334@gmail.com
File Name: examples/plot_gp_minimize_1d.py
Class Name:
Method Name:


Project Name: rasbt/mlxtend
Commit Name: f0f4ba31aaec58f607df632cfbec5fd39802958f
Time: 2015-04-09
Author: se.raschka@me.com
File Name: mlxtend/evaluate/learning_curves.py
Class Name:
Method Name: plot_learning_curves