From 46385a3908576ca9bd724964d1a4222da95dce71 Mon Sep 17 00:00:00 2001 From: "Anthony D. Blaom" Date: Thu, 28 May 2026 21:09:39 +1200 Subject: [PATCH 1/2] remove an incorrect statement in a docstring --- src/predict_transform.jl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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)")) From 011006f5ebff6ffa19cb04e9d75d91629d213941 Mon Sep 17 00:00:00 2001 From: "Anthony D. Blaom" Date: Thu, 28 May 2026 21:28:29 +1200 Subject: [PATCH 2/2] fix a wrong statement in the docs --- docs/src/accessor_functions.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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)