MCPcopy Index your code
hub / github.com/geekcomputers/Python / save

Method save

ML/src/python/neuralforge/config.py:38–41  ·  view source on GitHub ↗
(self, path: str)

Source from the content-addressed store, hash-verified

36 num_classes: int = 1000
37
38 def save(self, path: str):
39 os.makedirs(os.path.dirname(path), exist_ok=True)
40 with open(path, 'w') as f:
41 json.dump(asdict(self), f, indent=2)
42
43 @classmethod
44 def load(cls, path: str) -> 'Config':

Callers 3

mainFunction · 0.95
trainMethod · 0.45
save_checkpointMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected