Skip to content

Commit

Permalink
Merge pull request #9 from alan-turing-institute/properties
Browse files Browse the repository at this point in the history
Add the trait `deep_properties`
  • Loading branch information
ablaom authored May 14, 2021
2 parents 263059d + 47d2bde commit b5c8be1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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 = "1.0.0"
version = "1.1.0"

[deps]
ScientificTypes = "321657f4-b219-11e9-178b-2701a2544e81"
Expand Down
4 changes: 3 additions & 1 deletion src/StatisticalTraits.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ const TRAITS = [
:is_feature_dependent,
:distribution_type,
:iteration_parameter,
:supports_training_losses
:supports_training_losses,
:deep_properties
]


Expand Down Expand Up @@ -168,6 +169,7 @@ reports_each_observation(::Type) = false
distribution_type(::Type) = missing
iteration_parameter(::Type) = nothing
supports_training_losses(::Type) = false
deep_properties(::Type) = ()

# 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 b5c8be1

Please sign in to comment.