From 74e1b1010b6c99ed5184caabc2ced574510263c4 Mon Sep 17 00:00:00 2001 From: "Anthony D. Blaom" Date: Fri, 14 May 2021 10:57:08 +1200 Subject: [PATCH 1/3] add the trait deepproperties --- src/StatisticalTraits.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/StatisticalTraits.jl b/src/StatisticalTraits.jl index cb22274..999ff08 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, + :deepproperties ] @@ -168,6 +169,7 @@ reports_each_observation(::Type) = false distribution_type(::Type) = missing iteration_parameter(::Type) = nothing supports_training_losses(::Type) = false +deepproperties(::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 From 0cce7ef1a73d4fee28cf5808eefeb6c7557ac93c Mon Sep 17 00:00:00 2001 From: "Anthony D. Blaom" Date: Fri, 14 May 2021 10:57:45 +1200 Subject: [PATCH 2/3] bump 1.1.0 --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" From 47d2bdea62bc5a73412918859c067487149814dc Mon Sep 17 00:00:00 2001 From: "Anthony D. Blaom" Date: Fri, 14 May 2021 11:00:43 +1200 Subject: [PATCH 3/3] deepproperties -> deep_properties --- src/StatisticalTraits.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/StatisticalTraits.jl b/src/StatisticalTraits.jl index 999ff08..b5ea520 100644 --- a/src/StatisticalTraits.jl +++ b/src/StatisticalTraits.jl @@ -34,7 +34,7 @@ const TRAITS = [ :distribution_type, :iteration_parameter, :supports_training_losses, - :deepproperties + :deep_properties ] @@ -169,7 +169,7 @@ reports_each_observation(::Type) = false distribution_type(::Type) = missing iteration_parameter(::Type) = nothing supports_training_losses(::Type) = false -deepproperties(::Type) = () +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