Skip to content

Commit 8a45a8e

Browse files
committed
make fit_data_scitype(::Type{<:Model}) fallback Unknown
1 parent 544d7fc commit 8a45a8e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/model_traits.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ for M in ABSTRACT_MODEL_SUBTYPES
2121
@eval(StatisticalTraits.abstract_type(::Type{<:$M}) = $M)
2222
end
2323

24-
StatisticalTraits.fit_data_scitype(M::Type{<:Model}) = Tuple{input_scitype(M)}
24+
StatisticalTraits.fit_data_scitype(M::Type{<:Unsupervised}) =
25+
Tuple{input_scitype(M)}
2526
StatisticalTraits.fit_data_scitype(::Type{<:Static}) = Tuple{}
2627
function StatisticalTraits.fit_data_scitype(M::Type{<:Supervised})
2728
I = input_scitype(M)

0 commit comments

Comments
 (0)