these are probably the wrong abstraction
This commit is contained in:
parent
72e8e5c7f9
commit
dac80081ba
@ -23,6 +23,3 @@ onecold(y::AbstractMatrix, l...) =
|
||||
squeeze(mapslices(y -> onecold(y, l...), y, 2), 2)
|
||||
|
||||
chunk(xs, n) = Base.Iterators.partition(xs, length(xs)÷n)
|
||||
|
||||
batches(xs...) = (Batch(x) for x in zip(xs...))
|
||||
sequences(xs, len) = (Seq(x) for x in partition(xs, len))
|
||||
|
Loading…
Reference in New Issue
Block a user