2a6185d164c2f5cbd4288b687246c8110d6ff17f,analysis.py,,run_analysis,#Any#Any#Any#Any#,101

Before Change


            if len(new_test_frame) > 0:
                test_frame = test_frame.append(new_test_frame)
            else:
                raise Exception("Test frame has length 0. Adjust prediction date.")
        // write out the training and test files
        write_frame(train_frame, directory, train_file, extension, separator)
        write_frame(test_frame, directory, test_file, extension, separator)
        // run the model pipeline

After Change


                else:
                    raise Exception("A test frame has zero rows. Adjust prediction date.")
            else:
                logger.warning("A training frame has zero rows.")
        // write out the training and test files
        write_frame(train_frame, directory, train_file, extension, separator)
        write_frame(test_frame, directory, test_file, extension, separator)
        // run the model pipeline
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: ScottfreeLLC/AlphaPy
Commit Name: 2a6185d164c2f5cbd4288b687246c8110d6ff17f
Time: 2016-10-11
Author: Mark.R.Conway@gmail.com
File Name: analysis.py
Class Name:
Method Name: run_analysis


Project Name: RaRe-Technologies/gensim
Commit Name: 39cfc53884e98b03574a4d048355bbe2a93c678d
Time: 2015-09-03
Author: sam.sandberg@gmail.com
File Name: gensim/models/word2vec.py
Class Name: Word2Vec
Method Name: train


Project Name: Featuretools/featuretools
Commit Name: 321a0f455524b7553a66ff229f8b4c02c40a5fda
Time: 2019-06-21
Author: chrisstadler@gmail.com
File Name: featuretools/synthesis/deep_feature_synthesis.py
Class Name: DeepFeatureSynthesis
Method Name: _handle_new_feature