Closed KHN190 closed 9 years ago
I noticed in the optim methods there's a required feval to be passed through. For example:
optim
feval
f(x)
df / dx
f
Is f a loss function, then what is x? In some code (e.x. LSTM), why they weren't using optim?
x
f is the optimization function (for example: sgd), and x are the parameters of your neural network.
I noticed in the
optim
methods there's a requiredfeval
to be passed through. For example:f(x)
anddf / dx
. What is thisf
supposed to do?Is
f
a loss function, then what isx
? In some code (e.x. LSTM), why they weren't usingoptim
?