8442321b9b7a7cef7e3806b525965c36cea1549e,examples/60_search/example_parallel_manual_spawning.py,,,#,97

Before Change


processes = []
spawn_classifier = get_spawn_classifier(X_train, y_train)
for i in range(4):  // set this at roughly half of your cores
    p = multiprocessing.Process(
        target=spawn_classifier,
        args=(i, "breast_cancer"),
    )
    p.start()
    processes.append(p)
for p in processes:
    p.join()

After Change


        print("Accuracy score", sklearn.metrics.accuracy_score(y_test, predictions))

        // Wait until all workers are closed
        process_python_worker.join()
        process_cli_worker.join()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: automl/auto-sklearn
Commit Name: 8442321b9b7a7cef7e3806b525965c36cea1549e
Time: 2020-09-25
Author: feurerm@informatik.uni-freiburg.de
File Name: examples/60_search/example_parallel_manual_spawning.py
Class Name:
Method Name:


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 8e647100ce1e791b87bfd2cf03df51bf7a12a4b1
Time: 2017-06-29
Author: yutiansut@qq.com
File Name: test/tread_queue.py
Class Name:
Method Name:


Project Name: IndicoDataSolutions/finetune
Commit Name: 8b7151ff1d5f9c5de2e28a66e67681bb42149ce1
Time: 2020-04-13
Author: benlt@hotmail.co.uk
File Name: tests/test_scheduler.py
Class Name: TestScheduler
Method Name: setUpClass