We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72d9820 commit 6e9f223Copy full SHA for 6e9f223
docs/src/adding_models_for_general_use.md
@@ -155,8 +155,15 @@ function RidgeRegressor(; lambda=0.0)
155
end
156
```
157
158
-*Important.* The clean method must have the property that
159
-`clean!(clean!(model)) == clean!(model)` for any instance `model`.
+*Important.* Performing `clean!(model)` a second time should not mutate `model`. That is,
+this test should hold:
160
+
161
+```julia
162
+clean!(model)
163
+clone = deepcopy(model)
164
165
+@test model == clone
166
+```
167
168
Although not essential, try to avoid `Union` types for model
169
fields. For example, a field declaration `features::Vector{Symbol}`
0 commit comments