Beispiel #1
0
    def __init__(self, prior={(0,): Params()}, seed=12345):
        """
        :param Dict[tuple, object] prior:
        :param int seed: Seed for the random number generator.
        """
        super().__init__(prior, seed)

        self.segment_func_map = dict_utils.dict_apply(prior, lambda params: self.generate_cpc_func(params))
 def __init__(self,
              prior={(0, ): Params(1.0, 0.0, "multiplicative")},
              seed=12345):
     """
     :param dict[tuple, AbstractConversionRateSegments.Params] prior:
     :param int seed: Seed for the random number generator.
     """
     super().__init__(prior, seed)
     self.segment_func_map = dict_utils.dict_apply(
         prior, lambda params: self.generate_cvr_func(params))
Beispiel #3
0
    def __init__(self, prior={(0, ): Params()}, seed=9):
        """
        :param dict prior: Dict with dummy bids and constant probabilities for every segment.
        :param int seed: Seed for the random number generator.
        """

        super().__init__(prior, seed)

        self.segment_func_map = dict_utils.dict_apply(
            prior, self.generate_click_probability_func)
    def __init__(self,
                 prior={
                     (0, ): Params(noise_level=0.0,
                                   noise_type="multiplicative")
                 },
                 seed=12345):
        """
        :param Dict[tuple, ClicksBinomialSegments.Params] prior: dictionary segments as keys to which a configuration of approriate noise_level and noise_type is assigned
        :param int seed: Seed for the random number generator.
        """
        super().__init__(prior, seed)

        self.segment_func_map = dict_utils.dict_apply(
            prior, self.generate_clicks_func)
    def __init__(self,
                 prior={(0, ): Params(1.0, 0.0, "multiplicative")},
                 seed=123):
        """
        :param Dict[tuple, AveragePositionHyperbolicSegments.Params] prior: Dict
            with prior values for the module.
        :param int seed: Seed for the random number generator.
        """
        super().__init__(prior, seed)

        self.max_position = 10.0

        self.segment_func_map = dict_utils.dict_apply(
            prior, self.generate_average_position_func)