def get_average(self, thing):
    val = 0.0
    for i in range(self.params.num_trees):
        val += getattr(self.tree_stats[i], thing)
    return (val / self.params.num_trees)
def get_average(self, thing):
    val = 0.0
    for i in range(self.params.num_trees):
        val += getattr(self.tree_stats[i], thing)
    return (val / self.params.num_trees)