Skip to content

Commit 0543883

Browse files
committed
add iteration_parameter
oops
1 parent 44549bd commit 0543883

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/StatisticalTraits.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ const TRAITS = [
3131
:reports_each_observation,
3232
:aggregation,
3333
:is_feature_dependent,
34-
:distribution_type
34+
:distribution_type,
35+
:iteration_parameter
3536
]
3637

3738

@@ -150,7 +151,7 @@ supports_class_weights(::Type) = false
150151
# Possible values of the following are `:deterministic`, `:probabilistic`,
151152
# `:interval`, or `:unknown`:
152153

153-
prediction_type(::Type) = :unknown
154+
prediction_type(::Type) = :unknown
154155

155156
# Miscellaneous:
156157

@@ -164,6 +165,7 @@ aggregation(::Type) = Mean()
164165
is_feature_dependent(::Type) = false
165166
reports_each_observation(::Type) = false
166167
distribution_type(::Type) = missing
168+
iteration_parameter(::Type) = nothing
167169

168170
# Returns a tuple, with one entry per field of `T` (the type of some
169171
# statistical model, for example). Each entry is `nothing` or defines

test/runtests.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ const NONCONSTANT = [:docstring,
8383
:name,
8484
:human_name,
8585
:hyperparameters,
86-
:hyperparameter_types]
86+
:hyperparameter_types,
87+
:iteration_parameter]
8788

8889
@testset "traits with constant fall-back" begin
8990
for trait in setdiff(StatisticalTraits.TRAITS, NONCONSTANT)

0 commit comments

Comments
 (0)