MCPcopy
hub / github.com/FedML-AI/FedML / update_from_dict

Method update_from_dict

python/fedml/model/nlp/model_args.py:86–91  ·  view source on GitHub ↗
(self, new_values)

Source from the content-addressed store, hash-verified

84 skip_special_tokens: bool = True
85
86 def update_from_dict(self, new_values):
87 if isinstance(new_values, dict):
88 for key, value in new_values.items():
89 setattr(self, key, value)
90 else:
91 raise (TypeError(f"{new_values} is not a Python dict."))
92
93 def get_args_for_saving(self):
94 args_for_saving = {

Callers 9

loadMethod · 0.95
create_modelFunction · 0.80
load_synthetic_dataFunction · 0.80
create_modelFunction · 0.80
load_synthetic_dataFunction · 0.80
load_synthetic_dataFunction · 0.80
trainMethod · 0.80
load_synthetic_dataFunction · 0.80
trainMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected