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

minimizeAutoencoder #14

Open
tmelconian opened this issue Jun 18, 2016 · 1 comment
Open

minimizeAutoencoder #14

tmelconian opened this issue Jun 18, 2016 · 1 comment
Assignees
Labels

Comments

@tmelconian
Copy link

tmelconian commented Jun 18, 2016

This refers to the prerelease of 0.12 from Git, commit b85978e

  1. The example in the minimizeAutoencoder documentation doesn't run as coded. It's missing a comma, and after that fix, it gives errors about non-conformable arrays.
  2. This is the closest version I was able to get to run:

tmp<-darch(iris[,1:4], iris[,1:4], c(4,10,2,10,4), darch.isClass=F, darch.fineTuneFunction = "minimizeAutoencoder", darch.numEpochs=20,darch.unitFunction=tanhUnit,preProc.params = list(method=c('center','scale')))

However this produces MSE which never decreases, and warnings about NaNs, so I think I'm still doing it wrong. Could you provide a working example of how to use minimizeAutoencoder properly?

@saviola777
Copy link
Collaborator

Hello,

thanks for your feedback. There seems to be a bug in the minimizeAutoencoder function. It is planned to remove both minimizeAutoencoder and minimizeClassifier and use the optim function in R instead to provide CG support.

Until then, it is unlikely that this issue will be completely resolved since I don't have the time nor the knowledge to fix it and I'm not the original author of the CG code (any comments on what could be going wrong here are appreciated). However, I will go through the history of the minimizeAutoencoder function and see if this bug was introduced by me or was always present.

Additionally, I will

  • improve the example of the minimizeAutoencoder you mentioned, it has several issues apart from the missing comma
  • "fix" the problem with the NaNs you encountered (minimizeAutoencoder uses the log function to determine the error, which cannot deal with negative values; I write "fix" because I simply surround the values passed to log with a call to abs, which most likely is problematic in its own way)

Sorry that I can't really help you here! :/

As a side note, autoencoders can also be trained as regression problems using backpropagation.

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

No branches or pull requests

2 participants