MCPcopy Create free account
hub / github.com/DanielShalam/BPA / get_method

Function get_method

utils.py:107–115  ·  view source on GitHub ↗

Get the few-shot classification method (e.g. pt_map).

(args, bpa=None)

Source from the content-addressed store, hash-verified

105
106
107def get_method(args, bpa=None):
108 """
109 Get the few-shot classification method (e.g. pt_map).
110 """
111
112 if args.method.lower() in METHODS.keys():
113 return METHODS[args.method.lower()](args=vars(args), bpa=bpa)
114 else:
115 raise ValueError(f'Not implemented method. available methods are: {METHODS.keys()}')
116
117
118def get_criterion_by_method(method: str):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected