diff --git a/docs/src/accessor_functions.md b/docs/src/accessor_functions.md index 11ac67e0..d212ff0a 100644 --- a/docs/src/accessor_functions.md +++ b/docs/src/accessor_functions.md @@ -1,8 +1,9 @@ # [Accessor Functions](@id accessor_functions) -The sole argument of an accessor function is the output, `model`, of -[`fit`](@ref). Learners are free to implement any number of these, or none of them. Only -`LearnAPI.strip` has a fallback, namely the identity. +The sole argument of an accessor function is the output, `model`, of [`fit`](@ref). The +only accessor function that must be implemented for each new learner is +[`LearnAPI.learner(model)`](@ref); [`LearnAPI.strip`](@ref) has a fallback, namely the +identity. - [`LearnAPI.learner(model)`](@ref) - [`LearnAPI.extras(model)`](@ref) diff --git a/src/predict_transform.jl b/src/predict_transform.jl index 4503973f..e6f9e265 100644 --- a/src/predict_transform.jl +++ b/src/predict_transform.jl @@ -99,9 +99,7 @@ implementation must be added to the list returned by `LearnAPI.kinds_of_proxy()`. When `predict` is implemented, it may be necessary to overload -[`LearnAPI.features`](@ref). If `data` is not present in the implemented signature (eg., -for density estimators) then [`LearnAPI.features(learner, data)`](@ref) must always return -`nothing`. +[`LearnAPI.features`](@ref). $(DOC_IMPLEMENTED_METHODS(":(LearnAPI.predict)"))