code: def on_trial_complete(self,
                            trial_id,
                            result=None,
                            error=False,
                            early_terminated=False):
          
          skopt_trial_info = self._live_trial_mapping.pop(trial_id)
          if result:
              self._skopt_opt.tell(skopt_trial_info, -result[self._reward_attr])
docs: Passes the result to skopt unless early terminated or errored.
  
          The result is internally negated when interacting with Skopt
          so that Skopt Optimizers can "maximize" this value,
          as it minimizes on default.