-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
TimeStep classes not exported? #199
Labels
Comments
How are you importing brain? |
Using |
I get the same error, my code is:
error:
if I use
|
robertleeplummerjr
added a commit
that referenced
this issue
Apr 25, 2018
1 task
robertleeplummerjr
added a commit
that referenced
this issue
Apr 25, 2018
fix #199 - Properly export on es5 module
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I know this feature was released just a few days ago so I thought I'd open this issue to help with its progress, although this could just be me overlooking something.
Instantiating a new LSTMTimeStep returns the error below, and
brain.recurrent.LSTMTimeStep
isundefined.
I fixed this by exporting it in the compiled index.js, then instantiating with.default():
I'm sure that this problem would apply to the other "TimeStep" classes as well, but I've only tested it on
RNNTimeStep
which does indeed produce the same error.The text was updated successfully, but these errors were encountered: