Skip to content

Commit

Permalink
Merge pull request #47 from danpol/patch-1
Browse files Browse the repository at this point in the history
Learning rate decay
  • Loading branch information
macournoyer authored Aug 21, 2016
2 parents 41542b6 + 485ae0f commit b7a35ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train.lua
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ elseif options.opencl then
end

-- Run the experiment
local optimState = {learningRate=options.learningRate,momentum=options.momentum}
for epoch = 1, options.maxEpoch do
collectgarbage()

local nextBatch = dataset:batches(options.batchSize)
local params, gradParams = model:getParameters()
local optimState = {learningRate=options.learningRate,momentum=options.momentum}

-- Define optimizer
local function feval(x)
Expand Down

0 comments on commit b7a35ac

Please sign in to comment.