src/orion/algo/hyperband.py
def register(self, point, objective):
        """Register a point in the corresponding rung"""
        fidelity = point[self.hyperband.fidelity_index]
        rungs = [
            rung["results"] for rung in self.rungs if rung["resources"] == fidelity
        ]
        if not rungs:
            budgets = [rung["resources"] for rung in self.rungs]
            raise IndexError(
                REGISTRATION_ERROR.format(
                    fidelity=fidelity, budgets=budgets, params=point
                )
            )

        rungs[0][self.hyperband.get_id(point)] = (objective, point)
Register a point in the corresponding rung
Register a point in the corresponding rung
Register a point in the corresponding rung
def register(self, point, objective):
        fidelity = point[self.hyperband.fidelity_index]
        rungs = [
            rung["results"] for rung in self.rungs if rung["resources"] == fidelity
        ]
        if not rungs:
            budgets = [rung["resources"] for rung in self.rungs]
            raise IndexError(
                REGISTRATION_ERROR.format(
                    fidelity=fidelity, budgets=budgets, params=point
                )
            )
        rungs[0][self.hyperband.get_id(point)] = (objective, point)
def register ( self , point , objective ) : fidelity = point [ self . hyperband . fidelity_index ] rungs = [ rung [ "results" ] for rung in self . rungs if rung [ "resources" ] == fidelity ] if not rungs : budgets = [ rung [ "resources" ] for rung in self . rungs ] raise IndexError ( REGISTRATION_ERROR . format ( fidelity = fidelity , budgets = budgets , params = point ) ) rungs [ 0 ] [ self . hyperband . get_id ( point ) ] = ( objective , point )
Register a point in the corresponding rung
Register a point in the corresponding rung
"""Register a point in the corresponding rung"""
self
point
objective