File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
name = " MLJModelInterface"
2
2
uuid = " e80e1ace-859a-464e-9ed9-23947d8ae3ea"
3
3
authors = [" Thibaut Lienart and Anthony Blaom" ]
4
- version = " 1.3.5 "
4
+ version = " 1.3.6 "
5
5
6
6
[deps ]
7
7
Random = " 9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Original file line number Diff line number Diff line change @@ -54,10 +54,10 @@ function supervised_fit_data_scitype(M)
54
54
T = target_scitype (M)
55
55
ret = Tuple{I, T}
56
56
if supports_weights (M)
57
- W = AbstractVector{Union{Continuous, Count}} # weight scitype
57
+ W = AbstractVector{<: Union{Continuous, Count} } # weight scitype
58
58
return Union{ret, Tuple{I, T, W}}
59
59
elseif supports_class_weights (M)
60
- W = AbstractDict{Finite, Union{Continuous, Count}}
60
+ W = AbstractDict{Finite, <: Union{Continuous, Count} }
61
61
return Union{ret, Tuple{I, T, W}}
62
62
end
63
63
return ret
@@ -67,7 +67,7 @@ StatTraits.fit_data_scitype(M::Type{<:Unsupervised}) = Tuple{input_scitype(M)}
67
67
StatTraits. fit_data_scitype (:: Type{<:Static} ) = Tuple{}
68
68
StatTraits. fit_data_scitype (M:: Type{<:Supervised} ) = supervised_fit_data_scitype (M)
69
69
70
- # In special case of `UnsupervisedAnnotator`, we allow the target
70
+ # In special case of `UnsupervisedAnnotator`, we allow the target
71
71
# as an optional argument to `fit` (that is ignored) so that the
72
72
# `machine` constructor will accept it as a valid argument, which
73
73
# then enables *evaluation* of the detector with labeled data:
You can’t perform that action at this time.
0 commit comments