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

reconstruct #16

Open
AvocadoAlpha opened this issue Sep 19, 2019 · 1 comment
Open

reconstruct #16

AvocadoAlpha opened this issue Sep 19, 2019 · 1 comment

Comments

@AvocadoAlpha
Copy link

AvocadoAlpha commented Sep 19, 2019

I am looking for something equivalent to model.predict(X_test) in keras.

res = dbm.reconstruct(X_test)

Traceback (most recent call last):
File "/home/yunus/PycharmProjects/boltz_/boltzmann-machines-clone/examples/dbm_mnist.py", line 402, in
main()
File "/home/yunus/PycharmProjects/boltz_/boltzmann-machines-clone/examples/dbm_mnist.py", line 377, in main
res = dbm.reconstruct(X_test)
File "/home/yunus/PycharmProjects/boltz_/boltzmann-machines-clone/boltzmann_machines/base/tf_model.py", line 28, in wrapped_f
res = f(model, *args, **kwargs)
File "/home/yunus/PycharmProjects/boltz_/boltzmann-machines-clone/boltzmann_machines/dbm.py", line 877, in reconstruct
self._reconstruction = tf.get_collection('reconstruction')[0]
IndexError: list index out of range

tf.get_collection('reconstruction') returns an empty list.

when i run
dummy2 = tf.get_default_graph().get_all_collection_keys() there is no reconstruction entry.

reconstruct is the equivalent i thought but i cant get it to work.
Is there a reconstruct for RBM or how is it called?

@AvocadoAlpha
Copy link
Author

so this can be solved by training the model on your own machine. reconstruct then works.
Nevertheless one open question what is the equivalent reconstruct method for rbm ?
Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant