Thanks for your implementation. I run the code in a training set of ~ 150k rows and a test set of ~ 80k rows with ~24 features and get Memory Error. The stack trace is:
File "modeling.py", line 552, in score
kliep.fit(X_train, X_test) # keyword arguments are X_train and X_test
File "pykliep.py", line 83, in fit
sigma=sigma)
File "pykliep.py", line 124, in _fit
sigma=sigma)
File "pykliep.py", line 162, in _find_alpha
b = self._phi(X_train, sigma).sum(axis=0) / X_train.shape[0]
File "pykliep.py", line 154, in _phi
return np.exp(-np.sum((X-self._test_vectors)**2, axis=-1)/(2*sigma**2))
MemoryError```
What is the possible cause of this error?
Thanks for your implementation. I run the code in a training set of ~ 150k rows and a test set of ~ 80k rows with ~24 features and get Memory Error. The stack trace is: