def predict(self, point): response = [] for i in range(self.ntrees): response.append(self.trees[i].predict(point)) return np.mean(response, axis=0)