Skip to content

Commit 0e97689

Browse files
authored
Merge pull request #4 from alan-turing-institute/iteration
Add iteration_parameter and supports_training_losses
2 parents 44549bd + 6d8015e commit 0e97689

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "StatisticalTraits"
22
uuid = "64bff920-2084-43da-a3e6-9bb72801c0c9"
33
authors = ["Anthony D. Blaom <[email protected]>"]
4-
version = "0.1.0"
4+
version = "0.1.1"
55

66
[deps]
77
ScientificTypes = "321657f4-b219-11e9-178b-2701a2544e81"

src/StatisticalTraits.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ const TRAITS = [
3131
:reports_each_observation,
3232
:aggregation,
3333
:is_feature_dependent,
34-
:distribution_type
34+
:distribution_type,
35+
:iteration_parameter,
36+
:supports_training_losses
3537
]
3638

3739

@@ -150,7 +152,7 @@ supports_class_weights(::Type) = false
150152
# Possible values of the following are `:deterministic`, `:probabilistic`,
151153
# `:interval`, or `:unknown`:
152154

153-
prediction_type(::Type) = :unknown
155+
prediction_type(::Type) = :unknown
154156

155157
# Miscellaneous:
156158

@@ -164,6 +166,8 @@ aggregation(::Type) = Mean()
164166
is_feature_dependent(::Type) = false
165167
reports_each_observation(::Type) = false
166168
distribution_type(::Type) = missing
169+
iteration_parameter(::Type) = nothing
170+
supports_training_losses(::Type) = false
167171

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

0 commit comments

Comments
 (0)