Skip to content

Commit 040adcd

Browse files
committed
tweak
1 parent 02af766 commit 040adcd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/src/reference.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,9 @@ deep copies of RNG hyperparameters before using them in a new implementation of
105105
A *composite algorithm* is one with at least one property that can take other algorithms
106106
as values; for such algorithms [`LearnAPI.is_composite`](@ref)`(algorithm)` must be `true`
107107
(fallback is `false`). Generally, the keyword constructor provided by
108-
[`LearnAPI.constructor`](@ref) must provide default values for all fields that are not
109-
algorithm-valued.
108+
[`LearnAPI.constructor`](@ref) must provide default values for all properties that are not
109+
algorithm-valued. Instead, these algorithm-valued properties can have a `nothing` default,
110+
with the constructor throwing an error if the default value persists.
110111

111112
Any object `algorithm` for which [`LearnAPI.functions`](@ref)`(algorithm)` is non-empty is
112113
understood to have a valid implementation of the LearnAPI.jl interface.

0 commit comments

Comments
 (0)