def predict_cpp(self, X, depth): #ensure consistency to c data type X = SP.array(X, dtype='float') response = SP.empty(X.shape[0]) return CSP.predict(response, self.nodes, self.left_child, self.right_child, self.best_predictor, self.mean, self.s, X, depth)