-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
updated __init__.py to include missing encoders #3487
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the import statements in
unit/nupic/encoders/random_distributed_scalar_test.py
unit/nupic/encoders/pass_through_encoder_test.py
unit/nupic/encoders/sparse_pass_through_encoder_test.py
nupic/encoders/multi.py
@rhyolight What did you want changed in multi.py? Do you want all the imports to use the format:
|
Yes, just for consistency's sake
…Sent from my MegaPhone
On Mar 11, 2017, at 11:19 PM, Jonathan Mackenzie ***@***.***> wrote:
@rhyolight What did you want changed in multi.py? Do you want all the imports to use the format:
from nupic.encoders import ScalarEncoder
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Interesting test failure (some in all CI platforms)... 🤔
|
@rhyolight I fixed the error, but now I get capnp errors:
Are these errors acceptable? |
Oh, I did not expect that. @vitaly-krugl can you explain this at all? Seems like import changes should not affect capnp. |
@JonnoFTW Can you merge in master and see if the builds pass? |
Conflicts: src/nupic/encoders/__init__.py src/nupic/encoders/multi.py tests/unit/nupic/encoders/pass_through_encoder_test.py tests/unit/nupic/encoders/sparse_pass_through_encoder_test.py
@rhyolight can you have a look at this now? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I didn't catch this earlier.
src/nupic/encoders/multi.py
Outdated
from nupic.encoders import PassThroughEncoder | ||
from nupic.encoders import SparsePassThroughEncoder | ||
from nupic.encoders import CoordinateEncoder | ||
from nupic.encoders import GeospatialCoordinateEncoder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to our style guide, please import all encoders enclosed in parentheses to allow multiple lines.
Thanks Jonathan! |
Fixes #3480
Also fixed absolute package path for the
PassThroughEncoder