def __init__(self, default_parameter, trial_run_parameter, lower_is_better, objective, filename_objective, argo_ip, argo_port, k8_namespace, storage_strategy='keep', output_dir=''):
    "Set init values\n\n        Args:\n            default_parameter (dict): Parameter that will be submitted with the argo workflow in a kind of input flags.\n            rebuild_parameter (dict): Parameter that were genereted when creating the hp for sherpa.\n            lower_is_better (bool): whether to minimize or maximize the objective\n            objective (str): Name of the objective that will be optimized for. Must be a key/name from the metrics that were generated within a trial run.\n            filename_objective (str): Filename of the file that contains the objective value which was created within a trial run.\n            argo_ip (str): Argo server ip\n            argp_port (str): Argo server port\n            k8_namespace (str): Name of the kubernetes namespace where the trial container should be executed.\n            storage_strategy (str, optional): wether to keep all, delete all or keep the files from the best run. Defaults to 'keep'.\n            output_dir (str): needed for sherpa api\n        "
    if ('api_exec_token' in os.environ):
        api_token = ('Bearer ' + os.environ['api_exec_token'])
    else:
        logging.error('No Authorization Token detected. Check Kubernetes Secrets and Argo Template!')
    logging.info('Default Parameter: {}'.format(default_parameter))
    self.submit_url = (((((('https://' + argo_ip) + ':') + argo_port) + '/api/v1/workflows/') + k8_namespace) + '/submit')
    self.status_url = (((((('https://' + argo_ip) + ':') + argo_port) + '/api/v1/workflows/') + k8_namespace) + '/')
    self.delete_url = self.status_url
    self.client = Client()
    self.best_metric = {'job_id': None, 'metric': None}
    self.headers = {'Authorization': api_token}
    self.killed_jobs = []
    self.output_dir = output_dir
    self.default_parameter = default_parameter
    self.trial_run_parameter = trial_run_parameter
    self.storage_strategy = storage_strategy
    self.hostname = socket.gethostname()
    self.trials = {}
    self.run_name = self.default_parameter['run_name']
    self.metrics_filename = filename_objective
    self.objective = objective
    self.lower_is_better = lower_is_better
    self.output_path = self.default_parameter['output_path']
    self.decode_status = {'Succeeded': _JobStatus.finished, 'Running': _JobStatus.running, 'Pending': _JobStatus.queued, 'Failed': _JobStatus.failed, 'Stopped': _JobStatus.killed, 'Other': _JobStatus.other}
Set init values

Args:
    default_parameter (dict): Parameter that will be submitted with the argo workflow in a kind of input flags.
    rebuild_parameter (dict): Parameter that were genereted when creating the hp for sherpa.
    lower_is_better (bool): whether to minimize or maximize the objective
    objective (str): Name of the objective that will be optimized for. Must be a key/name from the metrics that were generated within a trial run.
    filename_objective (str): Filename of the file that contains the objective value which was created within a trial run.
    argo_ip (str): Argo server ip
    argp_port (str): Argo server port
    k8_namespace (str): Name of the kubernetes namespace where the trial container should be executed.
    storage_strategy (str, optional): wether to keep all, delete all or keep the files from the best run. Defaults to 'keep'.
    output_dir (str): needed for sherpa api
def __init__(self, default_parameter, trial_run_parameter, lower_is_better, objective, filename_objective, argo_ip, argo_port, k8_namespace, storage_strategy='keep', output_dir=):
    "Set init values\n\n        Args:\n            default_parameter (dict): Parameter that will be submitted with the argo workflow in a kind of input flags.\n            rebuild_parameter (dict): Parameter that were genereted when creating the hp for sherpa.\n            lower_is_better (bool): whether to minimize or maximize the objective\n            objective (str): Name of the objective that will be optimized for. Must be a key/name from the metrics that were generated within a trial run.\n            filename_objective (str): Filename of the file that contains the objective value which was created within a trial run.\n            argo_ip (str): Argo server ip\n            argp_port (str): Argo server port\n            k8_namespace (str): Name of the kubernetes namespace where the trial container should be executed.\n            storage_strategy (str, optional): wether to keep all, delete all or keep the files from the best run. Defaults to 'keep'.\n            output_dir (str): needed for sherpa api\n        "
    if ('api_exec_token' in os.environ):
        api_token = ('Bearer ' + os.environ['api_exec_token'])
    else:
        logging.error('No Authorization Token detected. Check Kubernetes Secrets and Argo Template!')
    logging.info('Default Parameter: {}'.format(default_parameter))
    self.submit_url = (((((('https://' + argo_ip) + ':') + argo_port) + '/api/v1/workflows/') + k8_namespace) + '/submit')
    self.status_url = (((((('https://' + argo_ip) + ':') + argo_port) + '/api/v1/workflows/') + k8_namespace) + '/')
    self.delete_url = self.status_url
    self.client = Client()
    self.best_metric = {'job_id': None, 'metric': None}
    self.headers = {'Authorization': api_token}
    self.killed_jobs = []
    self.output_dir = output_dir
    self.default_parameter = default_parameter
    self.trial_run_parameter = trial_run_parameter
    self.storage_strategy = storage_strategy
    self.hostname = socket.gethostname()
    self.trials = {}
    self.run_name = self.default_parameter['run_name']
    self.metrics_filename = filename_objective
    self.objective = objective
    self.lower_is_better = lower_is_better
    self.output_path = self.default_parameter['output_path']
    self.decode_status = {'Succeeded': _JobStatus.finished, 'Running': _JobStatus.running, 'Pending': _JobStatus.queued, 'Failed': _JobStatus.failed, 'Stopped': _JobStatus.killed, 'Other': _JobStatus.other}