MCPcopy
hub / github.com/cs230-stanford/cs230-code-examples / update

Method update

tensorflow/nlp/model/utils.py:26–30  ·  view source on GitHub ↗

Loads parameters from json file

(self, json_path)

Source from the content-addressed store, hash-verified

24 json.dump(self.__dict__, f, indent=4)
25
26 def update(self, json_path):
27 """Loads parameters from json file"""
28 with open(json_path) as f:
29 params = json.load(f)
30 self.__dict__.update(params)
31
32 @property
33 def dict(self):

Callers 4

__init__Method · 0.95
train.pyFile · 0.45
update_vocabFunction · 0.45
evaluate.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected