From 320cee3c535a888eb32982357b9499201a699352 Mon Sep 17 00:00:00 2001 From: "Anthony D. Blaom" Date: Mon, 2 Nov 2026 09:05:16 +1300 Subject: [PATCH 1/3] remove what looks like out-of-date todo code comment --- src/api.jl | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/api.jl b/src/api.jl index addac07..c2afa73 100644 --- a/src/api.jl +++ b/src/api.jl @@ -1,7 +1,3 @@ -#todo note `check` is called `_check` in MLJBase, but not public -#todo the way class_weights are specified is breaking! -#todo change `w` -> `weights` - """ measurements(measure, ŷ, y[, weights, class_weights::AbstractDict]) From f160d746fb6b92d07562fcef91f556a762165302 Mon Sep 17 00:00:00 2001 From: "Anthony D. Blaom" Date: Mon, 2 Nov 2026 09:05:46 +1300 Subject: [PATCH 2/3] rm non-public julia API that breaks in julia 1.14 --- src/tools.jl | 6 ++---- test/tools.jl | 3 ++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/tools.jl b/src/tools.jl index 028d37e..1bd67d9 100644 --- a/src/tools.jl +++ b/src/tools.jl @@ -11,10 +11,8 @@ Then `typename(x)` returns `:Machine`. """ function typename(x) M = typeof(x) - if isdefined(M, :name) - return M.name.name - elseif isdefined(M, :body) - return typename(M.body) + if M isa DataType || M isa UnionAll + return nameof(M) else return Symbol(string(M)) end diff --git a/test/tools.jl b/test/tools.jl index f4105c0..ae21359 100644 --- a/test/tools.jl +++ b/test/tools.jl @@ -1,7 +1,8 @@ -module Fruit using StatisticalMeasuresBase import StatisticalMeasuresBase as API +module Fruit + struct RedApple{T} x::T end From f552c439e6b2b86d07200286c406957c023c143b Mon Sep 17 00:00:00 2001 From: "Anthony D. Blaom" Date: Mon, 2 Nov 2026 09:06:53 +1300 Subject: [PATCH 3/3] bump 0.1.5 --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 29a1045..44ce204 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "StatisticalMeasuresBase" uuid = "c062fc1d-0d66-479b-b6ac-8b44719de4cc" authors = ["Anthony D. Blaom "] -version = "0.1.4" +version = "0.1.5" [deps] CategoricalArrays = "324d7699-5711-5eae-9e2f-1d82baa6b597"