From 904c02761163a73bd8be3c7af5dfed56a2e379d1 Mon Sep 17 00:00:00 2001 From: "Anthony D. Blaom" Date: Mon, 24 May 2021 16:38:30 +1200 Subject: [PATCH 1/2] address https://github.com/alan-turing-institute/MLJ.jl/issues/789 --- src/resampling.jl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/resampling.jl b/src/resampling.jl index 3189dbfa..de306760 100644 --- a/src/resampling.jl +++ b/src/resampling.jl @@ -363,11 +363,10 @@ function _check_measure(measure, model, y, operation) if model isa Probabilistic if operation == predict if prediction_type(measure) != :probabilistic - suggestion = "" - if target_scitype(measure) <: Finite + if target_scitype(measure) <: AbstractVector{<:Finite} suggestion = "\nPerhaps you want to set operation="* "predict_mode. " - elseif target_scitype(measure) <: Continuous + elseif target_scitype(measure) <: AbstractVector{<:Continuous} suggestion = "\nPerhaps you want to set operation="* "predict_mean or operation=predict_median. " else From 1f664fdcc0371ed78e2889025463d398b95efd37 Mon Sep 17 00:00:00 2001 From: "Anthony D. Blaom" Date: Mon, 24 May 2021 16:38:56 +1200 Subject: [PATCH 2/2] bunp 0.18.7 --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 5ae9de71..194ade38 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "MLJBase" uuid = "a7f614a8-145f-11e9-1d2a-a57a1082229d" authors = ["Anthony D. Blaom "] -version = "0.18.6" +version = "0.18.7" [deps] CategoricalArrays = "324d7699-5711-5eae-9e2f-1d82baa6b597"