示例#1
0
    def setup_stats(self, clusters):
        """
    computes error bounds and the minimum volume of a 0-volume cluster

    adds data structures to cluster object
    """
        Merger.setup_stats(self, clusters)

        for c in clusters:
            c.inf_func = self.learner.create_inf_func(c)
            c.c_range = list(self.c_range)
            c.inf_range = [c.inf_func(c.c_range[0]), c.inf_func(c.c_range[1])]
示例#2
0
  def setup_stats(self, clusters):
    """
    computes error bounds and the minimum volume of a 0-volume cluster

    adds data structures to cluster object
    """
    Merger.setup_stats(self, clusters)

    for c in clusters:
      c.inf_func = c.create_inf_func(self.learner.l)
      c.c_range = list(self.c_range)
      c.inf_range = [c.inf_func(c.c_range[0]), c.inf_func(c.c_range[1])]