@@ -95,6 +95,9 @@ for such algorithms [`LearnAPI.is_composite`](@ref)`(algorithm)` must be `true`
95
95
is ` false ` ). Generally, the keyword constructor provided by [ ` LearnAPI.constructor ` ] ( @ref )
96
96
must provide default values for all non-algorithm properties.
97
97
98
+ Any object ` algorithm ` for which [ ` LearnAPI.functions ` ] ( @ref ) ` (algorithm) ` is non-empty is
99
+ understood have a valid implementation of the LearnAPI.jl interface.
100
+
98
101
### Example
99
102
100
103
Any instance of ` GradientRidgeRegressor ` defined below is a valid algorithm.
@@ -110,8 +113,11 @@ GradientRidgeRegressor(; learning_rate=0.01, epochs=10, l2_regularization=0.01)
110
113
LearnAPI. constructor (:: GradientRidgeRegressor ) = GradientRidgeRegressor
111
114
```
112
115
113
- Any object ` algorithm ` for which [ ` LearnAPI.functions ` ] ( @ref ) ` (algorithm) ` is non-empty is
114
- understood have a valid implementation of the LearnAPI.jl interface.
116
+ ### Documentation
117
+
118
+ Attach public LearnAPI.jl-related documentation for an algorithm to it's * constructor* ,
119
+ rather than to the struct defining its type. In this way, an algorithm can implement
120
+ non-LearnAPI interfaces (such as a native interface) with separate document strings.
115
121
116
122
117
123
## Methods
@@ -125,8 +131,9 @@ Only these method names are exported by LearnAPI: `fit`, `transform`, `inverse_t
125
131
### List of methods
126
132
127
133
- [ ` fit ` ] (@ref fit): for training or updating algorithms that generalize to new data. Or,
128
- for non-generalizing ("static") algorithms, wrap ` algorithm ` in a mutable struct that
129
- can be mutated by ` predict ` /` transform ` to record byproducts of those operations.
134
+ for non-generalizing algorithms (see [ Static Algorithms] ( @ref ) ), wrap ` algorithm ` in a
135
+ mutable struct that can be mutated by ` predict ` /` transform ` to record byproducts of
136
+ those operations.
130
137
131
138
- [ ` predict ` ] (@ref operations): for outputting [ targets] (@ref proxy) or [ target
132
139
proxies] (@ref proxy) (such as probability density functions)
0 commit comments