Skip to content

Commit

Permalink
Fixed wrong score function name in deep autoencoders.
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieleangeletti committed Apr 14, 2017
1 parent b254e9e commit 6078fb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -176,7 +176,7 @@ def load_params_npz(npzfilepath):
sdae.fit(trX, trRef, vlX, vlRef)

# Compute the reconstruction loss of the model
print('Test set reconstruction loss: {}'.format(sdae.compute_reconstruction_loss(teX, teRef)))
print('Test set reconstruction loss: {}'.format(sdae.score(teX, teRef)))

# Save the predictions of the model
if FLAGS.save_reconstructions:
Expand Down
2 changes: 1 addition & 1 deletion cmd_line/boltzmann/run_deep_autoencoder.py
Expand Up @@ -152,7 +152,7 @@ def load_params_npz(npzfilepath):
srbm.fit(trX, trRef, vlX, vlRef)

# Compute the reconstruction loss of the model
print('Test set reconstruction loss: {}'.format(srbm.compute_reconstruction_loss(teX, teRef)))
print('Test set reconstruction loss: {}'.format(srbm.score(teX, teRef)))

# Save the predictions of the model
if FLAGS.save_reconstructions:
Expand Down

0 comments on commit 6078fb6

Please sign in to comment.