Skip to content

Commit b5c8be1

Browse files
authored
Merge pull request #9 from alan-turing-institute/properties
Add the trait `deep_properties`
2 parents 263059d + 47d2bde commit b5c8be1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
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 = "1.0.0"
4+
version = "1.1.0"
55

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

src/StatisticalTraits.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ const TRAITS = [
3333
:is_feature_dependent,
3434
:distribution_type,
3535
:iteration_parameter,
36-
:supports_training_losses
36+
:supports_training_losses,
37+
:deep_properties
3738
]
3839

3940

@@ -168,6 +169,7 @@ reports_each_observation(::Type) = false
168169
distribution_type(::Type) = missing
169170
iteration_parameter(::Type) = nothing
170171
supports_training_losses(::Type) = false
172+
deep_properties(::Type) = ()
171173

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

0 commit comments

Comments
 (0)