From ecb4322949dd96bac5e13b1ad1f19e2bc952aabb Mon Sep 17 00:00:00 2001 From: "Anthony D. Blaom" Date: Wed, 3 Jul 2024 08:16:49 +1200 Subject: [PATCH] fix docstring fix some more --- src/resampling.jl | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/resampling.jl b/src/resampling.jl index dd317092..692a467d 100644 --- a/src/resampling.jl +++ b/src/resampling.jl @@ -752,15 +752,15 @@ Base.show(io::IO, e::CompactPerformanceEvaluation) = ## USER CONTROL OF DEFAULT LOGGING const DOC_DEFAULT_LOGGER = - """ +""" - The default logger is used in calls to [`evaluate!`](@ref) and [`evaluate`](@ref), and - in the constructors `TunedModel` and `IteratedModel`, unless the `logger` keyword is - explicitly specified. +The default logger is used in calls to [`evaluate!`](@ref) and [`evaluate`](@ref), and +in the constructors `TunedModel` and `IteratedModel`, unless the `logger` keyword is +explicitly specified. - !!! note +!!! note - Prior to MLJ v0.20.7 (and MLJBase 1.5) the default logger was always `nothing`. + Prior to MLJ v0.20.7 (and MLJBase 1.5) the default logger was always `nothing`. """ @@ -772,8 +772,7 @@ tracking platforms, such as [MLflow](https://mlflow.org/docs/latest/index.html). $DOC_DEFAULT_LOGGER - When MLJBase is first loaded, the default logger is `nothing`. To reset the logger, see - beow. +When MLJBase is first loaded, the default logger is `nothing`. """ default_logger() = DEFAULT_LOGGER[] @@ -786,9 +785,9 @@ Reset the default logger. # Example Suppose an [MLflow](https://mlflow.org/docs/latest/index.html) tracking service is running -on a local server at `http://127.0.0.1:500`. Then every in every `evaluate` call in which -`logger` is not specified, as in the example below, the peformance evaluation is -automatically logged to the service. +on a local server at `http://127.0.0.1:500`. Then in every `evaluate` call in which +`logger` is not specified, the peformance evaluation is +automatically logged to the service, as here: ```julia-repl using MLJ @@ -798,6 +797,7 @@ default_logger(logger) X, y = make_moons() model = ConstantClassifier() evaluate(model, X, y, measures=[log_loss, accuracy)]) +``` """ function default_logger(logger)