Skip to content

Commit

Permalink
BUG: fix two small mistakes with verbosity control (apache#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
sglyon authored and pluskid committed Jan 15, 2017
1 parent 1b09fb4 commit 030990a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ function fit(self :: FeedForward, optimizer :: AbstractOptimizer, data :: Abstra

time_stop = time()
metric = get(opts.eval_metric)
opts.verbosity >= 2 && info(format("== Epoch {1:0>3d}/{1:0>3d} ==========", i_epoch, opts.n_epoch))
opts.verbosity >= 2 && info(format("== Epoch {1:0>3d}/{2:0>3d} ==========", i_epoch, opts.n_epoch))
if opts.verbosity >= 3
info("## Training summary")
for (name, value) in metric
Expand Down Expand Up @@ -579,6 +579,7 @@ function fit(self :: FeedForward, optimizer :: AbstractOptimizer, data :: Abstra
end # end of all epochs

opts.verbosity >= 1 && info("Finish training on $(self.ctx)")
nothing
end

function save_checkpoint(self :: FeedForward, prefix :: AbstractString, state :: OptimizationState)
Expand Down

0 comments on commit 030990a

Please sign in to comment.