967bf4dbc1353e05dcecfc24c78d9c31b7b50bb8,pgmpy/continuous/discretize/unbiased.py,UnbiasedDiscretizer,get_labels,#UnbiasedDiscretizer#,95

Before Change


                np.power(u, order)*(1 - self.factor.cdf(u)))

    def get_labels(self):
        labels = super(UnbiasedDiscretizer, self).get_labels()
        labels.append("x={high}".format(high=str(self.high)))
        return labels

After Change


                np.power(u, order)*(1 - self.factor.cdf(u)))

    def get_labels(self):
        labels = list("x={i}".format(i=str(i))
                      for i in np.round(np.linspace(self.low, self.high, self.cardinality), 3))
        return labels
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pgmpy/pgmpy
Commit Name: 967bf4dbc1353e05dcecfc24c78d9c31b7b50bb8
Time: 2016-05-31
Author: yashuseth2503@gmail.com
File Name: pgmpy/continuous/discretize/unbiased.py
Class Name: UnbiasedDiscretizer
Method Name: get_labels


Project Name: RasaHQ/rasa
Commit Name: 63b8fbf5b36c71002707b7136a734714f823166c
Time: 2018-10-04
Author: mr.voov@gmail.com
File Name: examples/formbot/actions.py
Class Name: RestaurantForm
Method Name: validate


Project Name: cornellius-gp/gpytorch
Commit Name: 8369d5ddaacbdbf0451afc689b6c78c84029feba
Time: 2017-07-17
Author: gpleiss@gmail.com
File Name: gpytorch/parameters/mc_parameter_group.py
Class Name: MCParameterGroup
Method Name: __getattr__