Skip to content

Commit

Permalink
Merge pull request #4 from alan-turing-institute/iteration
Browse files Browse the repository at this point in the history
Add iteration_parameter and supports_training_losses
  • Loading branch information
ablaom authored Mar 15, 2021
2 parents 44549bd + 6d8015e commit 0e97689
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "StatisticalTraits"
uuid = "64bff920-2084-43da-a3e6-9bb72801c0c9"
authors = ["Anthony D. Blaom <[email protected]>"]
version = "0.1.0"
version = "0.1.1"

[deps]
ScientificTypes = "321657f4-b219-11e9-178b-2701a2544e81"
Expand Down
8 changes: 6 additions & 2 deletions src/StatisticalTraits.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ const TRAITS = [
:reports_each_observation,
:aggregation,
:is_feature_dependent,
:distribution_type
:distribution_type,
:iteration_parameter,
:supports_training_losses
]


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

prediction_type(::Type) = :unknown
prediction_type(::Type) = :unknown

# Miscellaneous:

Expand All @@ -164,6 +166,8 @@ aggregation(::Type) = Mean()
is_feature_dependent(::Type) = false
reports_each_observation(::Type) = false
distribution_type(::Type) = missing
iteration_parameter(::Type) = nothing
supports_training_losses(::Type) = false

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

0 comments on commit 0e97689

Please sign in to comment.