145105e5dd84ca537b3eb5893fbe309edc497655,scripts/2015_nips_paper/run_with_metalearning.py,,main,#Any#Any#Any#Any#Any#,37

Before Change


        "multiclass": "multiclass.classification",
    }
    task_type = type_of_target(y_train)
    metadata_for_this_task = os.path.abspath(
        os.path.join(working_directory,
                     "metadata_%i/balanced_accuracy_%s_%s" % (task_id,
                                                              TASK_TYPES_TO_STRING[task_type],
                                                              sparse_or_dense)))

    configuration_output_dir = os.path.join(working_directory, str(seed))
    tmp_dir = os.path.join(configuration_output_dir, str(task_id))
    try:

After Change


                    metric=balanced_accuracy,
                    )

    with open(os.path.join(tmp_dir, "score_metalearning.csv"), "w") as fh:
        T = 0
        fh.write("Time,Train Performance,Test Performance\n")
        // Add start time:0, Train Performance:1, Test Performance: 1
        fh.write("{0},{1},{2}\n".format(T, 1, 1))
        for t, dummy, s in zip(automl.cv_results_["mean_fit_time"],
                               [1 for i in range(len(automl.cv_results_["mean_fit_time"]))],
                               1 - automl.cv_results_["mean_test_score"]):  // We compute rank based on error.
            T += t
            fh.write("{0},{1},{2}\n".format(T, dummy, s))


if __name__=="__main__":
    parser = argparse.ArgumentParser()
    parser.add_argument("--working-directory", type=str, required=True)
    parser.add_argument("--time-limit", type=int, required=True)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 7

Instances


Project Name: automl/auto-sklearn
Commit Name: 145105e5dd84ca537b3eb5893fbe309edc497655
Time: 2019-02-21
Author: ahn1340@hotmail.com
File Name: scripts/2015_nips_paper/run_with_metalearning.py
Class Name:
Method Name: main


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 3c8509c5711bf3e3edef1cd0bfd3a767ab426ab0
Time: 2018-04-22
Author: yutiansut@qq.com
File Name: QUANTAXIS/QACmd/__init__.py
Class Name: CLI
Method Name: do_examples


Project Name: facebook/FAI-PEP
Commit Name: c32b8c6d4c3daccb61fa4cfc8f014abb9777d1aa
Time: 2019-04-02
Author: huaminli@fb.com
File Name: benchmarking/run_remote.py
Class Name: RunRemote
Method Name: _downloadRepoFile


Project Name: automl/auto-sklearn
Commit Name: b8b9b6d34d35671fb8651f40503d51fc72477128
Time: 2019-03-13
Author: ahn1340@hotmail.com
File Name: scripts/2015_nips_paper/run_with_metalearning.py
Class Name:
Method Name: main