dc08464102e571d2cf4265319ed37319ada12bb6,rasa_core/policies/keras_policy.py,KerasPolicy,load,#Any#Any#,223

Before Change


            featurizer = TrackerFeaturizer.load(path)
            meta_path = os.path.join(path, "keras_policy.json")
            if os.path.isfile(meta_path):
                with io.open(meta_path) as f:
                    meta = json.loads(f.read())

                model_file = os.path.join(path, meta["model"])

                graph = tf.Graph()
                with graph.as_default():

After Change


            featurizer = TrackerFeaturizer.load(path)
            meta_path = os.path.join(path, "keras_policy.json")
            if os.path.isfile(meta_path):
                meta = json.loads(utils.read_file(meta_path))

                model_file = os.path.join(path, meta["model"])

                graph = tf.Graph()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: RasaHQ/rasa
Commit Name: dc08464102e571d2cf4265319ed37319ada12bb6
Time: 2018-09-28
Author: tom@rasa.com
File Name: rasa_core/policies/keras_policy.py
Class Name: KerasPolicy
Method Name: load


Project Name: RasaHQ/rasa
Commit Name: dc08464102e571d2cf4265319ed37319ada12bb6
Time: 2018-09-28
Author: tom@rasa.com
File Name: rasa_core/policies/fallback.py
Class Name: FallbackPolicy
Method Name: load


Project Name: RasaHQ/rasa
Commit Name: dc08464102e571d2cf4265319ed37319ada12bb6
Time: 2018-09-28
Author: tom@rasa.com
File Name: rasa_core/domain.py
Class Name: Domain
Method Name: load_specification