addbe43e93bea82a3eda2b8051df6b7e40fd9ec1,studio/model.py,Experiment,get_model,#Experiment#,61

Before Change


        if self.info.get("type") == "keras":
            hdf5_files = [
                (p, os.path.getmtime(p))
                for p in glob.glob(os.path.join(self.model_dir, "*.hdf*"))]

            last_checkpoint = max(hdf5_files, key=lambda t: t[1])[0]
            return KerasModelWrapper(last_checkpoint)

After Change


                (p, os.path.getmtime(p))
                for p in
                glob.glob(self.artifacts["modeldir"] + "/*.hdf*") +
                glob.glob(self.artifacts["modeldir"] + "/*.h5")]

            last_checkpoint = max(hdf5_files, key=lambda t: t[1])[0]
            return KerasModelWrapper(last_checkpoint)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: studioml/studio
Commit Name: addbe43e93bea82a3eda2b8051df6b7e40fd9ec1
Time: 2017-06-19
Author: peter.zhokhov@sentient.ai
File Name: studio/model.py
Class Name: Experiment
Method Name: get_model


Project Name: snipsco/snips-nlu
Commit Name: c31afbb3c7523e111bb13f16afb2cb98d3ffe424
Time: 2018-06-15
Author: adrien.ball@snips.net
File Name: snips_nlu/resources.py
Class Name:
Method Name: _load_words_inflections


Project Name: snipsco/snips-nlu
Commit Name: c31afbb3c7523e111bb13f16afb2cb98d3ffe424
Time: 2018-06-15
Author: adrien.ball@snips.net
File Name: snips_nlu/resources.py
Class Name:
Method Name: _load_verbs_lexemes