src/orion/algo/tpe.py
def _build_multinomial_weights(self):
        """Build weights for categorical distribution based on observations"""
        weights_obs = ramp_up_weights(
            len(self.obs), self.tpe.full_weight_num, self.tpe.equal_weight
        )
        counts_obs = numpy.bincount(
            self.obs, minlength=len(self.choices), weights=weights_obs
        )
        counts_obs = counts_obs + self.tpe.prior_weight
        self.weights = counts_obs / counts_obs.sum()
Build weights for categorical distribution based on observations
Build weights for categorical distribution based on observations
Build weights for categorical distribution based on observations
def _build_multinomial_weights(self):
        weights_obs = ramp_up_weights(
            len(self.obs), self.tpe.full_weight_num, self.tpe.equal_weight
        )
        counts_obs = numpy.bincount(
            self.obs, minlength=len(self.choices), weights=weights_obs
        )
        counts_obs = counts_obs + self.tpe.prior_weight
        self.weights = counts_obs / counts_obs.sum()
def _build_multinomial_weights ( self ) : weights_obs = ramp_up_weights ( len ( self . obs ) , self . tpe . full_weight_num , self . tpe . equal_weight ) counts_obs = numpy . bincount ( self . obs , minlength = len ( self . choices ) , weights = weights_obs ) counts_obs = counts_obs + self . tpe . prior_weight self . weights = counts_obs / counts_obs . sum ( )
Build weights for categorical distribution based on observations
Build weights for categorical distribution based on observations
"""Build weights for categorical distribution based on observations"""
self