Skip to content

Commit 5b2abe5

Browse files
committed
add constructor trait
1 parent 250b9c2 commit 5b2abe5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/StatisticalTraits.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ const TRAITS = [
4242
:supports_training_losses,
4343
:deep_properties,
4444
:reporting_operations,
45+
:constructor,
4546
]
4647

4748

@@ -184,6 +185,7 @@ iteration_parameter(::Type) = nothing
184185
supports_training_losses(::Type) = false
185186
deep_properties(::Type) = ()
186187
reporting_operations(::Type) = ()
188+
constructor(::Type) = nothing
187189

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

0 commit comments

Comments
 (0)