d000d0750c958e2ec1b3d9eb3c9ea9cf63ab14f0,magpie/main.py,MagpieModel,batch_train,#MagpieModel#,99
Before Change
if not self.word2vec_model:
print("word2vec model is not trained. Run train_word2vec() first.")
return
if not self.scaler:
print("The scaler is not trained. Run fit_scaler() first.")
return
After Change
raise RuntimeError("The scaler is not trained. " + \
"Run fit_scaler() first.")
if not os.path.isdir(train_dir):
raise ValueError("The training directory " + train_dir + \
" does not exist")
if test_dir and not os .path.isdir(test_dir):
raise ValueError("The test directory " + test_dir + \
" does not exist")
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances Project Name: inspirehep/magpie
Commit Name: d000d0750c958e2ec1b3d9eb3c9ea9cf63ab14f0
Time: 2017-07-07
Author: stypka@spotify.com
File Name: magpie/main.py
Class Name: MagpieModel
Method Name: batch_train
Project Name: nilmtk/nilmtk
Commit Name: fae32cef694257fcaabcfd689d0d2d9c75870b39
Time: 2013-12-07
Author: nipunreddevil@gmail.com
File Name: nilmtk/dataset/ampds.py
Class Name: AMPDS
Method Name: load_gas
Project Name: nilmtk/nilmtk
Commit Name: fae32cef694257fcaabcfd689d0d2d9c75870b39
Time: 2013-12-07
Author: nipunreddevil@gmail.com
File Name: nilmtk/dataset/ampds.py
Class Name: AMPDS
Method Name: load_water
Project Name: inspirehep/magpie
Commit Name: d000d0750c958e2ec1b3d9eb3c9ea9cf63ab14f0
Time: 2017-07-07
Author: stypka@spotify.com
File Name: magpie/main.py
Class Name: MagpieModel
Method Name: train
Project Name: inspirehep/magpie
Commit Name: d000d0750c958e2ec1b3d9eb3c9ea9cf63ab14f0
Time: 2017-07-07
Author: stypka@spotify.com
File Name: magpie/main.py
Class Name: MagpieModel
Method Name: batch_train