src/orion/core/worker/producer.py
def _produce_lies(self, incomplete_trials):
        """Add fake objective results to incomplete trials

        Then register the trials in the db
        """
        log.debug("### Fetch active trials to observe:")
        lying_trials = []
        log.debug("### %s", incomplete_trials)

        for trial in incomplete_trials:
            log.debug("### Use defined ParallelStrategy to assign them fake results.")
            lying_result = self.strategy.lie(trial)
            if lying_result is not None:
                lying_trial = copy.deepcopy(trial)
                lying_trial.results.append(lying_result)
                lying_trials.append(lying_trial)
                log.debug("### Register lie to database: %s", lying_trial)
                lying_trial.parents = self.trials_history.children
                try:
                    self.experiment.register_lie(lying_trial)
                except DuplicateKeyError:
                    log.debug(
                        "#### Duplicate lie. No need to register a duplicate in DB."
                    )

        return lying_trials
Add fake objective results to incomplete trials

        Then register the trials in the db
        
Add fake objective results to incomplete trials
Then register the trials in the db
Add fake objective results to incomplete trials Then register the trials in the db
def _produce_lies(self, incomplete_trials):
        log.debug("### Fetch active trials to observe:")
        lying_trials = []
        log.debug("### %s", incomplete_trials)
        for trial in incomplete_trials:
            log.debug("### Use defined ParallelStrategy to assign them fake results.")
            lying_result = self.strategy.lie(trial)
            if lying_result is not None:
                lying_trial = copy.deepcopy(trial)
                lying_trial.results.append(lying_result)
                lying_trials.append(lying_trial)
                log.debug("### Register lie to database: %s", lying_trial)
                lying_trial.parents = self.trials_history.children
                try:
                    self.experiment.register_lie(lying_trial)
                except DuplicateKeyError:
                    log.debug(
                        "#### Duplicate lie. No need to register a duplicate in DB."
                    )
        return lying_trials
def _produce_lies ( self , incomplete_trials ) : log . debug ( "### Fetch active trials to observe:" ) lying_trials = [ ] log . debug ( "### %s" , incomplete_trials ) for trial in incomplete_trials : log . debug ( "### Use defined ParallelStrategy to assign them fake results." ) lying_result = self . strategy . lie ( trial ) if lying_result is not None : lying_trial = copy . deepcopy ( trial ) lying_trial . results . append ( lying_result ) lying_trials . append ( lying_trial ) log . debug ( "### Register lie to database: %s" , lying_trial ) lying_trial . parents = self . trials_history . children try : self . experiment . register_lie ( lying_trial ) except DuplicateKeyError : log . debug ( "#### Duplicate lie. No need to register a duplicate in DB." ) return lying_trials
Add fake objective results to incomplete trials
Then register the trials in the db
Add fake objective results to incomplete trials Then register the trials in the db
"""Add fake objective results to incomplete trials

        Then register the trials in the db
        """
self
incomplete_trials