skccm icon indicating copy to clipboard operation
skccm copied to clipboard

KNeighborsRegressor tuple index out of range

Open ivanfig opened this issue 6 years ago • 0 comments

IndexError Traceback (most recent call last) in 19 20 #test causation ---> 21 CCM.fit(x1tr,x2tr) 22 # x1p, x2p = CCM.predict(x1te, x2te,lib_lengths=lib_lens) 23

~/.local/lib/python3.6/site-packages/skccm/skccm.py in fit(self, X1_train, X2_train) 78 79 #to sorround a point, there must be ndim + 1 points ---> 80 near_neighs = X1_train.shape[1] + 1 81 82 self.knn1 = neighbors.KNeighborsRegressor(near_neighs)

IndexError: tuple index out of range

ivanfig avatar Feb 22 '19 16:02 ivanfig