src/orion/core/worker/producer.py
def register_trials(self, new_point):
        """Register a new set of sampled parameters into the DB
        guaranteeing their uniqueness

        Parameters
        ----------
        new_point: tuple
            tuple of values representing the hyperparameters values

        """
        # FIXME: Relying on DB to guarantee uniqueness
        # when the trial history will be held by that algo we can move that logic out of the DB

        log.debug("#### Convert point to `Trial` object.")
        new_trial = format_trials.tuple_to_trial(new_point, self.space)

        try:
            self._prevalidate_trial(new_trial)
            new_trial.parents = self.naive_trials_history.children
            log.debug("#### Register new trial to database: %s", new_trial)
            self.experiment.register_trial(new_trial)
            self._update_params_hashes([new_trial])
            return 1

        except DuplicateKeyError:
            log.debug("#### Duplicate sample: %s", new_trial)
            self.backoff()
            return 0
Register a new set of sampled parameters into the DB
        guaranteeing their uniqueness

        Parameters
        ----------
        new_point: tuple
            tuple of values representing the hyperparameters values

        
Register a new set of sampled parameters into the DB
guaranteeing their uniqueness

Parameters

tuple
tuple of values representing the hyperparameters values
Register a new set of sampled parameters into the DB guaranteeing their uniqueness Parameters tuple tuple of values representing the hyperparameters values
def register_trials(self, new_point):
        log.debug("#### Convert point to `Trial` object.")
        new_trial = format_trials.tuple_to_trial(new_point, self.space)
        try:
            self._prevalidate_trial(new_trial)
            new_trial.parents = self.naive_trials_history.children
            log.debug("#### Register new trial to database: %s", new_trial)
            self.experiment.register_trial(new_trial)
            self._update_params_hashes([new_trial])
            return 1
        except DuplicateKeyError:
            log.debug("#### Duplicate sample: %s", new_trial)
            self.backoff()
            return 0
def register_trials ( self , new_point ) : log . debug ( "#### Convert point to `Trial` object." ) new_trial = format_trials . tuple_to_trial ( new_point , self . space ) try : self . _prevalidate_trial ( new_trial ) new_trial . parents = self . naive_trials_history . children log . debug ( "#### Register new trial to database: %s" , new_trial ) self . experiment . register_trial ( new_trial ) self . _update_params_hashes ( [ new_trial ] ) return 1 except DuplicateKeyError : log . debug ( "#### Duplicate sample: %s" , new_trial ) self . backoff ( ) return 0
Register a new set of sampled parameters into the DB
guaranteeing their uniqueness
Register a new set of sampled parameters into the DB guaranteeing their uniqueness
"""Register a new set of sampled parameters into the DB
        guaranteeing their uniqueness

        Parameters
        ----------
        new_point: tuple
            tuple of values representing the hyperparameters values

        """ # FIXME: Relying on DB to guarantee uniqueness # when the trial history will be held by that algo we can move that logic out of the DB
self
new_point