e4bfd12f527bfd71453156c34defc95585314fde,batchflow/once_pipeline.py,OncePipeline,save_model,#OncePipeline#Any#,147

Before Change


    def save_model(self, name, *args, **kwargs):
         Save a model 
        self.pipeline.models.save_model(name, *args, **kwargs)
        return self

    def load_model(self, mode, model_class=None, name=None, *args, **kwargs):
         Load a model 
        self.pipeline.models.load_model(name, mode, model_class, name, *args, **kwargs)

After Change



    def save_model(self, name, *args, **kwargs):
         Save a model 
        return self._add_action(SAVE_MODEL_ID, *args, _args=dict(model_name=name), **kwargs)

    def _exec_save_model(self, action):
        self.pipeline._exec_save_model(None, action)        // pylint:disable=protected-access
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: analysiscenter/batchflow
Commit Name: e4bfd12f527bfd71453156c34defc95585314fde
Time: 2019-07-10
Author: rhudor@gmail.com
File Name: batchflow/once_pipeline.py
Class Name: OncePipeline
Method Name: save_model


Project Name: analysiscenter/batchflow
Commit Name: bc704bbbb5f9feea467ee7cd0bf5062bd15b0930
Time: 2019-05-31
Author: rhudor@gmail.com
File Name: batchflow/once_pipeline.py
Class Name: OncePipeline
Method Name: save_model


Project Name: analysiscenter/batchflow
Commit Name: 7dc4842c66907f76a027d92e753b62774a641931
Time: 2019-07-10
Author: rhudor@gmail.com
File Name: batchflow/pipeline.py
Class Name: Pipeline
Method Name: save_model


Project Name: analysiscenter/batchflow
Commit Name: 869790833fda1ddeefcb247fafa88eb0092cf0bd
Time: 2019-05-30
Author: rhudor@gmail.com
File Name: batchflow/pipeline.py
Class Name: Pipeline
Method Name: save_model