code: def __add_regression_args(parser):
      """
      keywords defined for regression tasks
  
      :param parser:
      :return:
      """
      parser.add_argument(
          "--loss_border",
          metavar="",
          help="Set the border size for the loss function to ignore",
          type=int,
          default=0,
      )
  
      parser.add_argument(
          "--error_map",
          metavar="",
          help="Set whether to output the regression error maps (the maps "
          "will be stored in $model_dir/error_maps; the error maps "
          "can be used for window sampling).",
          type=str2boolean,
          default=False,
      )
  
      from niftynet.application.regression_application import (
          SUPPORTED_INPUT,
      )
  
      parser = add_input_name_args(parser, SUPPORTED_INPUT)
      return parser
  
file_path: NiftyNet/niftynet/utilities/user_parameters_custom.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  from niftynet.utilities.user_parameters_helper import add_input_name_args, int_array, str2boolean
label_desc: Use image node_id 2 for calling a global function with example usage: __add_regression_args(parser) and returns: parser