|
1 |
| -function DOC_IMPLEMENTED_METHODS(name; overloaded=false) |
| 1 | + function DOC_IMPLEMENTED_METHODS(name; overloaded=false) |
2 | 2 | word = overloaded ? "overloaded" : "implemented"
|
3 | 3 | "If $word, you must include `$name` in the tuple returned by the "*
|
4 | 4 | "[`LearnAPI.functions`](@ref) trait. "
|
@@ -49,8 +49,9 @@ DOC_MINIMIZE(func) =
|
49 | 49 | The first signature returns target or target proxy predictions for input features `data`,
|
50 | 50 | according to some `model` returned by [`fit`](@ref) or [`obsfit`](@ref). Where supported,
|
51 | 51 | these are literally target predictions if `kind_of_proxy = LiteralTarget()`, and
|
52 |
| -probability density/mass functions if `kind_of_proxy = |
53 |
| -Distribution()`. $DOC_HOW_TO_LIST_PROXIES |
| 52 | +probability density/mass functions if `kind_of_proxy = Distribution()`. List all options |
| 53 | +with [`LearnAPI.kinds_of_proxy(algorithm)`](@ref), where `algorithm = |
| 54 | +LearnAPI.algorithm(model)`. |
54 | 55 |
|
55 | 56 | The shortcut `predict(model, data...) = predict(model, LiteralTarget(), data...)` is also
|
56 | 57 | provided.
|
@@ -135,13 +136,15 @@ where `data...` is what the standard [`predict`](@ref) call expects, as in the c
|
135 | 136 | `predict(model, kind_of_proxy, data...)`. Note `data` is always a tuple, even if `predict`
|
136 | 137 | has only one data argument. See more at [`obs`](@ref).
|
137 | 138 |
|
| 139 | +
|
138 | 140 | $(DOC_MUTATION(:obspredict))
|
139 | 141 |
|
140 | 142 | If overloaded, you must include both `LearnAPI.obspredict` and `LearnAPI.predict` in the
|
141 | 143 | list of methods returned by the [`LearnAPI.functions`](@ref) trait.
|
142 | 144 |
|
143 |
| -Each supported `kind_of_proxy` should be listed in the return value of the |
144 |
| -[`LearnAPI.kinds_of_proxy(algorithm)`](@ref) trait. |
| 145 | +An implementation is provided for each kind of target proxy you wish to support. See the |
| 146 | +LearnAPI.jl documentation for options. Each supported `kind_of_proxy` instance should be |
| 147 | +listed in the return value of the [`LearnAPI.kinds_of_proxy(algorithm)`](@ref) trait. |
145 | 148 |
|
146 | 149 | $(DOC_MINIMIZE(:obspredict))
|
147 | 150 |
|
|
0 commit comments