@@ -59,14 +59,15 @@ Return an updated version of the `model` object returned by a previous [`fit`](@
59
59
`update` call, but with the specified hyperparameter replacements, in the form `p1=value1,
60
60
p2=value2, ...`.
61
61
62
- Provided that `data` is identical with the data presented in a preceding `fit` call, as in
63
- the example below, execution is semantically equivalent to the call `fit(algorithm,
64
- data)`, where `algorithm` is `LearnAPI.algorithm(model)` with the specified
65
- replacements. In some cases (typically, when changing an iteration parameter) there may be
66
- a performance benefit to using `update` instead of retraining ab initio.
62
+ Provided that `data` is identical with the data presented in a preceding `fit` call *and*
63
+ there is at most one hyperparameter replacement, as in the example below, execution is
64
+ semantically equivalent to the call `fit(algorithm, data)`, where `algorithm` is
65
+ `LearnAPI.algorithm(model)` with the specified replacements. In some cases (typically,
66
+ when changing an iteration parameter) there may be a performance benefit to using `update`
67
+ instead of retraining ab initio.
67
68
68
- If `data` differs from that in the preceding `fit` or `update` call, then behaviour is
69
- algorithm-specific.
69
+ If `data` differs from that in the preceding `fit` or `update` call, or there is more than
70
+ one hyperparameter replacement, then behaviour is algorithm-specific.
70
71
71
72
```julia
72
73
algorithm = MyForest(ntrees=100)
@@ -85,6 +86,8 @@ See also [`fit`](@ref), [`update_observations`](@ref), [`update_features`](@ref)
85
86
Implementation is optional. The signature must include
86
87
`verbosity`. $(DOC_IMPLEMENTED_METHODS (" :(LearnAPI.update)" ))
87
88
89
+ See also [`LearnAPI.clone`](@ref)
90
+
88
91
"""
89
92
update (model, data1, datas... ; kwargs... ) = update (model, (data1, datas... ); kwargs... )
90
93
@@ -119,6 +122,8 @@ See also [`fit`](@ref), [`update`](@ref), [`update_features`](@ref).
119
122
Implementation is optional. The signature must include
120
123
`verbosity`. $(DOC_IMPLEMENTED_METHODS (" :(LearnAPI.update_observations)" ))
121
124
125
+ See also [`LearnAPI.clone`](@ref).
126
+
122
127
"""
123
128
update_observations (algorithm, data1, datas... ; kwargs... ) =
124
129
update_observations (algorithm, (data1, datas... ); kwargs... )
@@ -144,6 +149,8 @@ See also [`fit`](@ref), [`update`](@ref), [`update_features`](@ref).
144
149
Implementation is optional. The signature must include
145
150
`verbosity`. $(DOC_IMPLEMENTED_METHODS (" :(LearnAPI.update_features)" ))
146
151
152
+ See also [`LearnAPI.clone`](@ref).
153
+
147
154
"""
148
155
update_features (algorithm, data1, datas... ; kwargs... ) =
149
156
update_features (algorithm, (data1, datas... ); kwargs... )
0 commit comments