示例#1
0
 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)
示例#2
0
文件: lmm_forest.py 项目: PMBio/limix
 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)
示例#3
0
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)