Skip to content

Commit 5ac60f3

Browse files
authored
Merge pull request #195 from JuliaAI/class-weights-fit-data-scitype
Tweak fit_data_scitype fallback to resolve issue with class weights
2 parents 3e36cc7 + 12f588e commit 5ac60f3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "MLJModelInterface"
22
uuid = "e80e1ace-859a-464e-9ed9-23947d8ae3ea"
33
authors = ["Thibaut Lienart and Anthony Blaom"]
4-
version = "1.9.5"
4+
version = "1.9.6"
55

66
[deps]
77
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"

src/model_traits.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function supervised_fit_data_scitype(M)
5959
W = AbstractVector{<:Union{Continuous, Count}} # weight scitype
6060
return Union{ret, Tuple{I, T, W}}
6161
elseif supports_class_weights(M)
62-
W = AbstractDict{Finite, <:Union{Continuous, Count}}
62+
W = Any
6363
return Union{ret, Tuple{I, T, W}}
6464
end
6565
return ret

0 commit comments

Comments
 (0)