natekupp / ffx

Fast Function Extraction
http://trent.st/ffx
Other
80 stars 96 forks source link

SimpleBase.simulate throws IndexError #12

Closed keyvan-m-sadeghi closed 10 years ago

keyvan-m-sadeghi commented 10 years ago

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 10 years ago

This was caused by a mistake in my own code, sorry.