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)
def cpp_best_split_full_model(X, Uy, C, S, U, noderange, delta, save_memory=False): """wrappe calling cpp splitting function""" return CSP.best_split_full_model(X, Uy, C, S, U, noderange, delta)