Skip to content

Commit 4e1a382

Browse files
authored
Merge pull request #138 from JuliaAI/dev
For a 1.3.7 release
2 parents 824e05c + d207f88 commit 4e1a382

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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.3.5"
4+
version = "1.3.6"
55

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

src/model_traits.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ function supervised_fit_data_scitype(M)
5454
T = target_scitype(M)
5555
ret = Tuple{I, T}
5656
if supports_weights(M)
57-
W = AbstractVector{Union{Continuous, Count}} # weight scitype
57+
W = AbstractVector{<:Union{Continuous, Count}} # weight scitype
5858
return Union{ret, Tuple{I, T, W}}
5959
elseif supports_class_weights(M)
60-
W = AbstractDict{Finite, Union{Continuous, Count}}
60+
W = AbstractDict{Finite, <:Union{Continuous, Count}}
6161
return Union{ret, Tuple{I, T, W}}
6262
end
6363
return ret
@@ -67,7 +67,7 @@ StatTraits.fit_data_scitype(M::Type{<:Unsupervised}) = Tuple{input_scitype(M)}
6767
StatTraits.fit_data_scitype(::Type{<:Static}) = Tuple{}
6868
StatTraits.fit_data_scitype(M::Type{<:Supervised}) = supervised_fit_data_scitype(M)
6969

70-
# In special case of `UnsupervisedAnnotator`, we allow the target
70+
# In special case of `UnsupervisedAnnotator`, we allow the target
7171
# as an optional argument to `fit` (that is ignored) so that the
7272
# `machine` constructor will accept it as a valid argument, which
7373
# then enables *evaluation* of the detector with labeled data:

0 commit comments

Comments
 (0)