Get the few-shot classification method (e.g. pt_map).
(args, bpa=None)
| 105 | |
| 106 | |
| 107 | def 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 | |
| 118 | def get_criterion_by_method(method: str): |
nothing calls this directly
no outgoing calls
no test coverage detected