Skip to content

Commit ec1a97f

Browse files
committed
Fix incorrect claim about FiniteIterable including RandomAccess
1 parent 92ea74a commit ec1a97f

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/types.jl

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -244,14 +244,10 @@ struct RandomAccess <: Finite end
244244
"""
245245
LearnAPI.FiniteIterable
246246
247-
A data interface type. We say that `data` implements the `FiniteIterable` interface if
248-
it implements Julia's `iterate` interface, including `Base.length`, and if
249-
`Base.IteratorSize(typeof(data)) == Base.HasLength()`. For example, this is true if:
250-
251-
- `data` implements the [`LearnAPI.RandomAccess`](@ref) interface (arrays and most
252-
tables); or
253-
254-
- `data isa MLCore.DataLoader`, which includes output from `MLCore.eachobs`.
247+
A data interface type. We say that `data` implements the `FiniteIterable` interface if it
248+
implements Julia's `iterate` interface, including `Base.length`, and if
249+
`Base.IteratorSize(typeof(data)) == Base.HasLength()`. For example, this is true if `data
250+
isa MLCore.DataLoader`, which includes the output of `MLUtils.eachobs`.
255251
256252
If [`LearnAPI.data_interface(learner)`](@ref) takes the value `FiniteIterable()`, then
257253
[`obs`](@ref)`(learner, ...)` is guaranteed to return objects implementing the

0 commit comments

Comments
 (0)