1
- # TYPE ALIASES
1
+ # TYPE ALIASES
2
2
3
3
const AbstractRow = Union{AbstractVector{<: Integer }, Colon}
4
4
const TrainTestPair = Tuple{AbstractRow,AbstractRow}
@@ -873,7 +873,7 @@ function _check_measure(measure, operation, model, y)
873
873
end
874
874
875
875
model isa Deterministic &&
876
- StatisticalMeasuresBase. kind_of_proxy (measure) != LearnAPI. LiteralTarget () &&
876
+ StatisticalMeasuresBase. kind_of_proxy (measure) != LearnAPI. Point () &&
877
877
throw (ERR_MEASURES_DETERMINISTIC (measure))
878
878
879
879
return true
@@ -962,7 +962,7 @@ function _actual_operations(operation::Nothing,
962
962
# trait. But it's values are instances of LearnAPI.KindOfProxy, instead of
963
963
# symbols:
964
964
#
965
- # `LearnAPI.LiteralTarget ()` ~ `:deterministic` (`model isa Deterministic`)
965
+ # `LearnAPI.Point ()` ~ `:deterministic` (`model isa Deterministic`)
966
966
# `LearnAPI.Distribution()` ~ `:probabilistic` (`model isa Deterministic`)
967
967
#
968
968
kind_of_proxy = StatisticalMeasuresBase. kind_of_proxy (m)
@@ -983,7 +983,7 @@ function _actual_operations(operation::Nothing,
983
983
if MLJBase. prediction_type (model) === :probabilistic
984
984
if kind_of_proxy === LearnAPI. Distribution ()
985
985
return predict
986
- elseif kind_of_proxy === LearnAPI. LiteralTarget ()
986
+ elseif kind_of_proxy === LearnAPI. Point ()
987
987
if observation_scitype <: Union{Missing,Finite}
988
988
return predict_mode
989
989
elseif observation_scitype <: Union{Missing,Infinite}
@@ -997,7 +997,7 @@ function _actual_operations(operation::Nothing,
997
997
elseif MLJBase. prediction_type (model) === :deterministic
998
998
if kind_of_proxy === LearnAPI. Distribution ()
999
999
throw (err_incompatible_prediction_types (model, m))
1000
- elseif kind_of_proxy === LearnAPI. LiteralTarget ()
1000
+ elseif kind_of_proxy === LearnAPI. Point ()
1001
1001
return predict
1002
1002
else
1003
1003
throw (err_ambiguous_operation (model, m))
0 commit comments