src/orion/algo/hyperband.py
def observe(self, points, results):
        """Observe evaluation `results` corresponding to list of `points` in
        space.

        A simple random sampler though does not take anything into account.
        """
        for point, result in zip(points, results):

            full_id = self.get_id(point, ignore_fidelity=False)
            if full_id not in self.sampled:
                logger.info(
                    "Ignoring point %s because it was not sampled by current algo.",
                    full_id,
                )
                continue

            bracket = self._get_bracket(point)

            try:
                bracket.register(point, result["objective"])
            except IndexError:
                logger.warning(
                    "Point registered to wrong bracket. This is likely due "
                    "to a corrupted database, where trials of different fidelity "
                    "have a wrong timestamps."
                )
                continue

            _id_wo_fidelity = self.get_id(point)
            if (
                _id_wo_fidelity not in self.trial_info_wo_fidelity
                or bracket.get_point_max_resource(point)
                > self.trial_info_wo_fidelity[_id_wo_fidelity].get_point_max_resource(
                    point
                )
            ):
                # If the point show up the first time or it has the bigger resource value
                # compared with the same point in previous hyperband execution
                self.trial_info_wo_fidelity[_id_wo_fidelity] = bracket

            self._refresh_bracket()
Observe evaluation `results` corresponding to list of `points` in
        space.

        A simple random sampler though does not take anything into account.
        
Observe evaluation `results` corresponding to list of `points` in
space.

A simple random sampler though does not take anything into account.
Observe evaluation ` results ` corresponding to list of ` points ` in space . A simple random sampler though does not take anything into account .
def observe(self, points, results):
        for point, result in zip(points, results):
            full_id = self.get_id(point, ignore_fidelity=False)
            if full_id not in self.sampled:
                logger.info(
                    "Ignoring point %s because it was not sampled by current algo.",
                    full_id,
                )
                continue
            bracket = self._get_bracket(point)
            try:
                bracket.register(point, result["objective"])
            except IndexError:
                logger.warning(
                    "Point registered to wrong bracket. This is likely due "
                    "to a corrupted database, where trials of different fidelity "
                    "have a wrong timestamps."
                )
                continue
            _id_wo_fidelity = self.get_id(point)
            if (
                _id_wo_fidelity not in self.trial_info_wo_fidelity
                or bracket.get_point_max_resource(point)
                > self.trial_info_wo_fidelity[_id_wo_fidelity].get_point_max_resource(
                    point
                )
            ):
                self.trial_info_wo_fidelity[_id_wo_fidelity] = bracket
            self._refresh_bracket()
def observe ( self , points , results ) : for point , result in zip ( points , results ) : full_id = self . get_id ( point , ignore_fidelity = False ) if full_id not in self . sampled : logger . info ( "Ignoring point %s because it was not sampled by current algo." , full_id , ) continue bracket = self . _get_bracket ( point ) try : bracket . register ( point , result [ "objective" ] ) except IndexError : logger . warning ( "Point registered to wrong bracket. This is likely due " "to a corrupted database, where trials of different fidelity " "have a wrong timestamps." ) continue _id_wo_fidelity = self . get_id ( point ) if ( _id_wo_fidelity not in self . trial_info_wo_fidelity or bracket . get_point_max_resource ( point ) > self . trial_info_wo_fidelity [ _id_wo_fidelity ] . get_point_max_resource ( point ) ) : self . trial_info_wo_fidelity [ _id_wo_fidelity ] = bracket self . _refresh_bracket ( )
Observe evaluation `results` corresponding to list of `points` in
space.
Observe evaluation ` results ` corresponding to list of ` points ` in space .
"""Observe evaluation `results` corresponding to list of `points` in
        space.

        A simple random sampler though does not take anything into account.
        """ # If the point show up the first time or it has the bigger resource value # compared with the same point in previous hyperband execution
self
points
results