Skip to content
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

MnistExample causes an IllegalStateException #27

Closed
dims12 opened this issue Jun 25, 2014 · 2 comments
Closed

MnistExample causes an IllegalStateException #27

dims12 opened this issue Jun 25, 2014 · 2 comments

Comments

@dims12
Copy link

dims12 commented Jun 25, 2014

While trying to run MnistExample, I am getting an IllegalStateException:

Exception in thread "main" java.lang.RuntimeException: java.lang.IllegalStateException: Hidden unit type must either be rectified linear or binary
    at org.deeplearning4j.nn.BaseMultiLayerNetwork$Builder.build(BaseMultiLayerNetwork.java:3284)
    at org.deeplearning4j.dbn.DBN$Builder.build(DBN.java:801)
    at org.deeplearning4j.example.mnist.MnistExample.main(MnistExample.java:40)
Caused by: java.lang.IllegalStateException: Hidden unit type must either be rectified linear or binary
    at org.deeplearning4j.rbm.RBM.sampleHiddenGivenVisible(RBM.java:350)
    at org.deeplearning4j.nn.BaseMultiLayerNetwork.init(BaseMultiLayerNetwork.java:383)
    at org.deeplearning4j.nn.BaseMultiLayerNetwork.initializeLayers(BaseMultiLayerNetwork.java:344)
    at org.deeplearning4j.nn.BaseMultiLayerNetwork$Builder.build(BaseMultiLayerNetwork.java:3271)
    ... 2 more
@agibsonccc
Copy link
Contributor

Fixed. Thanks! 957ff28

@lock
Copy link

lock bot commented Jan 22, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants