@@ -12,24 +12,19 @@ A transformer ordinarily implements `transform` instead of
12
12
13
13
New implementations of `fit`, `predict`, etc,
14
14
always have a *single* `data` argument, as in
15
- `LearnAPI.fit(algorithm, data; verbosity=1) = ...`.
15
+ `LearnAPI.fit(algorithm, data; verbosity=1) = ...`.
16
16
For convenience, user-calls, such as `fit(algorithm, X, y)`, automatically fallback
17
- to `fit(algorithm, (X, y))`.
17
+ to `fit(algorithm, (X, y))`.
18
18
19
19
!!! note
20
20
21
- By default, it is assumed that `data` supports the [`LearnAPI.RandomAccess`](@ref)
22
- interface; this includes all matrices, with observations-as-columns, most tables, and
23
- tuples thereof. See [`LearnAPI.RandomAccess`](@ref) for details. If this is not the
24
- case then an implementation must either:
25
-
26
21
If the `data` object consumed by `fit`, `predict`, or `transform` is not
27
22
not a suitable table¹, array³, tuple of tables and arrays, or some
28
23
other object implementing
29
24
the MLUtils.jl `getobs`/`numobs` interface,
30
25
then an implementation must: (i) overload [`obs`](@ref) to articulate how
31
26
provided data can be transformed into a form that does support
32
- it , as illustrated below under
27
+ this interface , as illustrated below under
33
28
[Providing an advanced data interface](@ref); or (ii) overload the trait
34
29
[`LearnAPI.data_interface`](@ref) to specify a more relaxed data
35
30
API.
0 commit comments