b048efa4f956b80266942caea6ee8b4311e1d17a,autokeras/classifier.py,ClassifierBase,fit,#ClassifierBase#Any#Any#Any#Any#Any#,119

Before Change


        signal.signal(signal.SIGALRM, signal_handler)
        signal.alarm(time_limit)  // Ten seconds
        try:
            while True:
                p = multiprocessing.Process(target=run_searcher_once, args=(x_train, y_train, x_test, y_test, self.path))
                p.start()
                p.join()
        except TimeoutError:
            if self.verbose:
                print("Timed is up!")
            return

After Change


                p.start()
                p.join()

        start_time = time.time()
        while time.time() - start_time <= time_limit:
            p = multiprocessing.Process(target=run_searcher_once, args=(x_train, y_train, x_test, y_test, self.path))
            p.start()
            // Kill the process if necessary.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: keras-team/autokeras
Commit Name: b048efa4f956b80266942caea6ee8b4311e1d17a
Time: 2018-04-08
Author: jin@tamu.edu
File Name: autokeras/classifier.py
Class Name: ClassifierBase
Method Name: fit


Project Name: autorope/donkeycar
Commit Name: 23b71838463734c8ea3ea8f48dc34f3764a0ea55
Time: 2018-12-30
Author: tawnkramer@gmail.com
File Name: donkeycar/parts/network.py
Class Name:
Method Name: