To close JuliaAI/MLJ.jl#1029.
This will be very similar to what we did for MLJTuning in these two PRs:
That is: We add a logger field to the wrapper structs (there are two of them - ProbabilisticTunedModel and DeterministicTunedModel ) just like we did for TunedModel. And then we pass logger on to the Resampler instances , which in this case appears here. In this way, whenever any iteration control (e.g., WithLossDo) accesses a loss, it will also get logged to the specified logger.
Instead of nothing the default value of logger will be MLJBase.default_logger().
cc @pebeto
To close JuliaAI/MLJ.jl#1029.
This will be very similar to what we did for MLJTuning in these two PRs:
default_logger()the defaultloggerinTunedModel(logger=...)MLJTuning.jl#221That is: We add a
loggerfield to the wrapper structs (there are two of them - ProbabilisticTunedModel and DeterministicTunedModel ) just like we did forTunedModel. And then we passloggeron to theResamplerinstances , which in this case appears here. In this way, whenever any iteration control (e.g.,WithLossDo) accesses a loss, it will also get logged to the specifiedlogger.Instead of
nothingthe default value ofloggerwill beMLJBase.default_logger().cc @pebeto