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 or inverse transform from Feature in UnsupervisedDBN #40

Open
mgcy opened this issue May 15, 2019 · 1 comment
Open

Reconstruct or inverse transform from Feature in UnsupervisedDBN #40

mgcy opened this issue May 15, 2019 · 1 comment

Comments

@mgcy
Copy link

mgcy commented May 15, 2019

I have fitted and transformed an model as:
X_feature = unsupervised_dbn.fit_transform(X)

How can I inverse transform the X_feature to get the reconstructed X_re?

@larasatiayudia
Copy link

i dont know if its right but logically you can do this:
feature=dbn.transform(data)
reconstructed=copy.copy(feature)
for i in range(len(dbn.rbm_layers),0,-1):
reconstructed = dbn.rbm_layers[i-1]._reconstruct(reconstructed)

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

2 participants