Skip to content

Commit

Permalink
Merge pull request #195 from JuliaAI/class-weights-fit-data-scitype
Browse files Browse the repository at this point in the history
Tweak fit_data_scitype fallback to resolve issue with class weights
  • Loading branch information
ablaom authored Mar 22, 2024
2 parents 3e36cc7 + 12f588e commit 5ac60f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "MLJModelInterface"
uuid = "e80e1ace-859a-464e-9ed9-23947d8ae3ea"
authors = ["Thibaut Lienart and Anthony Blaom"]
version = "1.9.5"
version = "1.9.6"

[deps]
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Expand Down
2 changes: 1 addition & 1 deletion src/model_traits.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function supervised_fit_data_scitype(M)
W = AbstractVector{<:Union{Continuous, Count}} # weight scitype
return Union{ret, Tuple{I, T, W}}
elseif supports_class_weights(M)
W = AbstractDict{Finite, <:Union{Continuous, Count}}
W = Any
return Union{ret, Tuple{I, T, W}}
end
return ret
Expand Down

0 comments on commit 5ac60f3

Please sign in to comment.