cli_class_dict¶

cli_class_dict(usage_help='Mapping of classification outputs to class names. Example: --class-dict \'{"1": "tumour", "2": "normal"}\'', default=None)[source]¶

Enables –class-dict option for CLI.

The functions parse JSON into a dict with int keys if possible.

Parameters:
  • usage_help (str)

  • default (dict | None)

Return type:

Callable