diff --git a/Project.toml b/Project.toml index c6b05d6..656e37b 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "StatisticalTraits" uuid = "64bff920-2084-43da-a3e6-9bb72801c0c9" authors = ["Anthony D. Blaom "] -version = "1.0.0" +version = "1.1.0" [deps] ScientificTypes = "321657f4-b219-11e9-178b-2701a2544e81" diff --git a/src/StatisticalTraits.jl b/src/StatisticalTraits.jl index cb22274..b5ea520 100644 --- a/src/StatisticalTraits.jl +++ b/src/StatisticalTraits.jl @@ -33,7 +33,8 @@ const TRAITS = [ :is_feature_dependent, :distribution_type, :iteration_parameter, - :supports_training_losses + :supports_training_losses, + :deep_properties ] @@ -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