67431581de4f80e2e7cb57969368c7f5d65a7d34,scripts/2015_nips_paper/get_tasks.py,,get_task_ids,#Any#,16

Before Change


    // deactivated tasks
    tasks_d = openml.tasks.list_tasks(task_type_id=1, status="deactivated")
    tasks_d = pd.DataFrame.from_dict(tasks_d, orient="index")
    tasks_d = tasks_d.query("evaluation_measures != evaluation_measures")
    tasks_d = tasks_d[(tasks_d.estimation_procedure == "33% Holdout set")]

    task_ids = []
    for did in dataset_ids:

After Change


def get_task_ids(dataset_ids):
    // return task ids of corresponding datset ids.
    // active tasks
    print(len(dataset_ids))
    tasks_a = openml.tasks.list_tasks(task_type_id=1, status="active")
    tasks_a = pd.DataFrame.from_dict(tasks_a, orient="index")
    // query only those with NaN as evaluation_measures.
    //tasks_a = tasks_a.query("evaluation_measures != evaluation_measures")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: automl/auto-sklearn
Commit Name: 67431581de4f80e2e7cb57969368c7f5d65a7d34
Time: 2019-03-13
Author: ahn1340@hotmail.com
File Name: scripts/2015_nips_paper/get_tasks.py
Class Name:
Method Name: get_task_ids


Project Name: automl/auto-sklearn
Commit Name: 5f6de3a6593f516653fc5e7ac9eba58c038de101
Time: 2019-02-07
Author: ahn1340@hotmail.com
File Name: scripts/2015_nips_paper/get_tasks.py
Class Name:
Method Name: get_task_ids


Project Name: google/nucleus
Commit Name: 1f3dcd25bcbefcda72218a76f0cb609460bc9b98
Time: 2019-05-03
Author: no-reply@google.com
File Name: nucleus/examples/ascii_pileup.py
Class Name:
Method Name: main