Hello, good afternoon. Pluto is always logging the progress multiple times when training a flux model as figure below shows:
There are ways to supress this log or is a bug in Pluto.jl or Flux.jl?
Hello, good afternoon. Pluto is always logging the progress multiple times when training a flux model as figure below shows:
There are ways to supress this log or is a bug in Pluto.jl or Flux.jl?
I guess it’s not really a bug of either.
I mean Pluto supports providing the maxlog
argument to @info
calls so it seems that Flux.jl does not use that option, but I don’t think it’s a problem or a bug.
For your case, you should be able to suppress the logs by using the stdlib package Logging
. Once you loaded Logging
in the Pluto notebook you can rewrite your cell like this:
let
with_logger(NullLogger()) do
for e in 1:200
train!(loss, pmodel, data, opt)
end
end
@info loss(pmodel, xtrain, ytrain)
nothing
end