these are probably the wrong abstraction

This commit is contained in:
Mike J Innes 2017-06-06 18:03:36 +01:00
parent 72e8e5c7f9
commit dac80081ba

View File

@ -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))