File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const MODEL_TRAITS = [
4
4
:input_scitype ,
5
5
:output_scitype ,
6
6
:target_scitype ,
7
- :training_scitype ,
7
+ :fit_data_scitype ,
8
8
:predict_scitype ,
9
9
:transform_scitype ,
10
10
:inverse_transform_scitype ,
Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ for M in ABSTRACT_MODEL_SUBTYPES
21
21
@eval (StatisticalTraits. abstract_type (:: Type{<:$M} ) = $ M)
22
22
end
23
23
24
- StatisticalTraits. training_scitype (M:: Type{<:Model} ) = input_scitype (M)
25
- StatisticalTraits. training_scitype (:: Type{<:Static} ) = Tuple{}
26
- function StatisticalTraits. training_scitype (M:: Type{<:Supervised} )
24
+ StatisticalTraits. fit_data_scitype (M:: Type{<:Model} ) = input_scitype (M)
25
+ StatisticalTraits. fit_data_scitype (:: Type{<:Static} ) = Tuple{}
26
+ function StatisticalTraits. fit_data_scitype (M:: Type{<:Supervised} )
27
27
I = input_scitype (M)
28
28
T = target_scitype (M)
29
29
ret = Tuple{I,T}
Original file line number Diff line number Diff line change @@ -129,17 +129,17 @@ M.input_scitype(::Type{<:S2}) = Table(Continuous)
129
129
@test inverse_transform_scitype (S2 ()) == Table (Continuous)
130
130
end
131
131
132
- @testset " abstract_type, training_scitype " begin
132
+ @testset " abstract_type, fit_data_scitype " begin
133
133
@test abstract_type (P2 ()) == Probabilistic
134
134
@test abstract_type (S1 ()) == Supervised
135
135
@test abstract_type (U1 ()) == Unsupervised
136
136
@test abstract_type (D1 ()) == Deterministic
137
137
@test abstract_type (P1 ()) == Probabilistic
138
138
139
- @test training_scitype (P2 ()) ==
139
+ @test fit_data_scitype (P2 ()) ==
140
140
Tuple{Table (Continuous),AbstractVector{<: Multiclass }}
141
- @test training_scitype (U2 ()) == Table (Continuous)
142
- @test training_scitype (S2 ()) == Tuple{}
141
+ @test fit_data_scitype (U2 ()) == Table (Continuous)
142
+ @test fit_data_scitype (S2 ()) == Tuple{}
143
143
end
144
144
145
145
true
You can’t perform that action at this time.
0 commit comments