src/orion/algo/tpe.py
def _initialize(self):
        """Initialize TPE once the space is transformed"""

        for dimension in self.space.values():

            if dimension.type != "fidelity" and dimension.prior_name not in [
                "uniform",
                "reciprocal",
                "int_uniform",
                "choices",
            ]:
                raise ValueError(
                    "TPE now only supports uniform, loguniform, uniform discrete "
                    "and choices as prior."
                )

            shape = dimension.shape
            if shape and len(shape) != 1:
                raise ValueError("TPE now only supports 1D shape.")
Initialize TPE once the space is transformed
Initialize TPE once the space is transformed
Initialize TPE once the space is transformed
def _initialize(self):
        for dimension in self.space.values():
            if dimension.type != "fidelity" and dimension.prior_name not in [
                "uniform",
                "reciprocal",
                "int_uniform",
                "choices",
            ]:
                raise ValueError(
                    "TPE now only supports uniform, loguniform, uniform discrete "
                    "and choices as prior."
                )
            shape = dimension.shape
            if shape and len(shape) != 1:
                raise ValueError("TPE now only supports 1D shape.")
def _initialize ( self ) : for dimension in self . space . values ( ) : if dimension . type != "fidelity" and dimension . prior_name not in [ "uniform" , "reciprocal" , "int_uniform" , "choices" , ] : raise ValueError ( "TPE now only supports uniform, loguniform, uniform discrete " "and choices as prior." ) shape = dimension . shape if shape and len ( shape ) != 1 : raise ValueError ( "TPE now only supports 1D shape." )
Initialize TPE once the space is transformed
Initialize TPE once the space is transformed
"""Initialize TPE once the space is transformed"""
self