From a86babf384d84b1789213824e65893752bd1efba Mon Sep 17 00:00:00 2001 From: Jose Esparza <28990958+pebeto@users.noreply.github.com> Date: Sun, 6 Aug 2023 22:19:15 -0500 Subject: [PATCH] removing model field bypass and now adding it into the performance evaluation report --- src/resampling.jl | 2 +- test/resampling.jl | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/resampling.jl b/src/resampling.jl index 946362d7..3bb3b68e 100644 --- a/src/resampling.jl +++ b/src/resampling.jl @@ -575,7 +575,7 @@ function Base.show(io::IO, ::MIME"text/plain", e::PerformanceEvaluation) "with these fields:") println(io, " measure, operation, measurement, per_fold,\n"* " per_observation, fitted_params_per_fold,\n"* - " report_per_fold, train_test_rows") + " report_per_fold, train_test_rows", "model") println(io, "Extract:") show_color = MLJBase.SHOW_COLOR[] color_off() diff --git a/test/resampling.jl b/test/resampling.jl index 2a0c5a82..c170039a 100644 --- a/test/resampling.jl +++ b/test/resampling.jl @@ -794,9 +794,6 @@ end print(show_text) docstring_text = string(@doc(PerformanceEvaluation)) for fieldname in fieldnames(PerformanceEvaluation) - if fieldname == :model - continue - end @test contains(show_text, string(fieldname)) # string(text::Markdown.MD) converts `-` list items to `*`. @test contains(docstring_text, " * `$fieldname`")