@@ -92,17 +92,15 @@ then overloading `obs` is completely optional. Plain iteration interfaces, with
92
92
knowledge of the number of observations, can also be specified (to support, e.g., data
93
93
loaders reading images from disk).
94
94
95
- ## Hooks for adding functionality
96
-
97
- A key to enabling toolboxes to enhance LearnAPI.jl algorithm functionality is the
98
- implementation of two key additional methods, beyond the usual ` fit ` and
99
- ` predict ` /` transform ` . Given any training ` data ` consumed by ` fit ` (such as `data = (X,
100
- y)` in the example above) [ ` LearnAPI.features(algorithm, data)`] (@ref input) tells us what
101
- part of ` data ` comprises * features* , which is something that can be passed onto to
102
- ` predict ` or ` transform ` (` X ` in the example) while [ `LearnAPI.target(algorithm,
103
- data)` ](@ref), if implemented, tells us what part comprises the target ( ` y` in the
104
- example). By explicitly requiring such methods, we free algorithms to consume data in
105
- multiple forms, including optimised, algorithm-specific forms, as described above.
95
+ ## Hooks adding algorithm-generic functonality
96
+
97
+ Given any training ` data ` consumed by ` fit ` (such as ` data = (X, y) ` in the example above)
98
+ [ ` LearnAPI.features(algorithm, data) ` ] (@ref input) tells us what part of ` data ` comprises
99
+ * features* , which is something that can be passed onto to ` predict ` or ` transform ` (` X ` in
100
+ the example) while [ ` LearnAPI.target(algorithm, data) ` ] ( @ref ) , if implemented, tells us
101
+ what part comprises the target (` y ` in the example). By explicitly requiring such methods,
102
+ LearnAPI.jl frees algorithms to consume data in multiple forms, including optimised,
103
+ algorithm-specific forms, as described above.
106
104
107
105
## Learning more
108
106
0 commit comments