@@ -10,19 +10,19 @@ For a transformer, implementations ordinarily implement `transform` instead of
10
10
11
11
!!! important
12
12
13
- The core implementations of `fit`, `predict`, etc,
14
- always have a *single* `data` argument, as in `fit(algorithm, data; verbosity=1)`.
15
- Calls like `fit(algorithm, X, y)` are provided as additional convenience methods.
13
+ The core implementations of `fit`, `predict`, etc,
14
+ always have a *single* `data` argument, as in `fit(algorithm, data; verbosity=1)`.
15
+ Calls like `fit(algorithm, X, y)` are provided as additional convenience methods.
16
16
17
17
!!! note
18
18
19
- If the `data` object consumed by `fit`, `predict`, or `transform` is not
20
- not a suitable table¹, array³, tuple of tables and arrays, or some
21
- other object implementing
22
- the MLUtils.jl `getobs`/`numobs` interface,
23
- then an implementation must: (i) suitably overload the trait
24
- [`LearnAPI.data_interface`](@ref); and/or (ii) overload [`obs`](@ref), as
25
- illustrated below under [Providing an advanced data interface](@ref).
19
+ If the `data` object consumed by `fit`, `predict`, or `transform` is not
20
+ not a suitable table¹, array³, tuple of tables and arrays, or some
21
+ other object implementing
22
+ the MLUtils.jl `getobs`/`numobs` interface,
23
+ then an implementation must: (i) suitably overload the trait
24
+ [`LearnAPI.data_interface`](@ref); and/or (ii) overload [`obs`](@ref), as
25
+ illustrated below under [Providing an advanced data interface](@ref).
26
26
27
27
The first line below imports the lightweight package LearnAPI.jl whose methods we will be
28
28
extending. The second imports libraries needed for the core algorithm.
0 commit comments