torch / tutorials

A series of machine learning tutorials for Torch7
622 stars 312 forks source link

Confusion with optimizations. #33

Closed KHN190 closed 9 years ago

KHN190 commented 9 years ago

I noticed in the optim methods there's a required feval to be passed through. For example:

Is f a loss function, then what is x? In some code (e.x. LSTM), why they weren't using optim?

soumith commented 9 years ago

f is the optimization function (for example: sgd), and x are the parameters of your neural network.