2eb844885d5b810cc93968f4965c58eb96e86d58,prep_model.py,,main,#,28

Before Change


    gl_model_file_path = os.path.join(gl_dir_path, "{}.params".format(model_name))
    shutil.copy2(model_file_path, gl_model_file_path)

    pt_dir_path = os.path.join(root_dir_path, "pt-{}".format(model_name))
    os.mkdir(pt_dir_path)
    shutil.copy2(log_file_path, pt_dir_path)
    pt_model_file_path = os.path.join(pt_dir_path, "{}.pth".format(model_name))

After Change


    top5s.append(top5_err)
    sha1s.append(sha1_value)

    slice_df_dict = {
        "Type": types,
        "Top5": top5s,
        "Sha1": sha1s,
    }
    slice_df = pd.DataFrame(slice_df_dict)
    slice_df.to_csv(
        os.path.join(root_dir_path, "info.csv"),
        sep="\t",
        index=False)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: osmr/imgclsmob
Commit Name: 2eb844885d5b810cc93968f4965c58eb96e86d58
Time: 2020-12-28
Author: osemery@gmail.com
File Name: prep_model.py
Class Name:
Method Name: main


Project Name: Pinafore/qb
Commit Name: 2677b6d77f6f06c05a980b86e86e0bf4dd495f62
Time: 2016-09-27
Author: ski.rodriguez@gmail.com
File Name: qanta/extractors/classifier.py
Class Name: Classifier
Method Name: score_guesses


Project Name: deeptools/HiCExplorer
Commit Name: ae99b536ff30a731a1ae226e124867534a715bd4
Time: 2018-04-24
Author: 26085589+gtrichard@users.noreply.github.com
File Name: hicexplorer/hicPlotDistVsCounts.py
Class Name:
Method Name: main