MCPcopy Create free account
hub / github.com/M-Nauta/ProtoTree / load_args

Function load_args

util/args.py:180–188  ·  view source on GitHub ↗

Load the pickled arguments from the specified directory :param directory_path: The path to the directory from which the arguments should be loaded :return: the unpickled arguments

(directory_path: str)

Source from the content-addressed store, hash-verified

178
179
180def load_args(directory_path: str) -> argparse.Namespace:
181 """
182 Load the pickled arguments from the specified directory
183 :param directory_path: The path to the directory from which the arguments should be loaded
184 :return: the unpickled arguments
185 """
186 with open(directory_path + '/args.pickle', 'rb') as f:
187 args = pickle.load(f)
188 return args
189
190def get_optimizer(tree, args: argparse.Namespace) -> torch.optim.Optimizer:
191 """

Callers

nothing calls this directly

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected