nickc1 / skccm

Convergent Cross Mapping in Scikit Learn's style
MIT License
99 stars 17 forks source link

KNeighborsRegressor tuple index out of range #3

Open ivanfig opened 5 years ago

ivanfig commented 5 years ago

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