SimpleBase.simulate throws IndexError
keyvan-m-sadeghi opened this issue · 1 comments
keyvan-m-sadeghi commented
At some random step that I can't trace, SimpleBase.simulate throws "IndexError: too many indices". I'm getting this in here:
return X[:,self.var] ** self.exponent
self.var is 13 (I have 26 features)
For a quick fix, I added:
if len(X.shape) == 1:
return X ** self.exponent
right before the above mentioned line, but I'm not sure if it's the right fix...
keyvan-m-sadeghi commented
This was caused by a mistake in my own code, sorry.