cleanup
This commit is contained in:
parent
c6ba49e8ea
commit
89191bdeb1
@ -10,7 +10,6 @@ export CMUDict, cmudict
|
|||||||
|
|
||||||
deps(path...) = joinpath(@__DIR__, "..", "..", "deps", path...)
|
deps(path...) = joinpath(@__DIR__, "..", "..", "deps", path...)
|
||||||
|
|
||||||
|
|
||||||
function download_and_verify(url, path, hash)
|
function download_and_verify(url, path, hash)
|
||||||
tmppath = tempname()
|
tmppath = tempname()
|
||||||
download(url, tmppath)
|
download(url, tmppath)
|
||||||
@ -52,7 +51,6 @@ export Iris
|
|||||||
include("housing.jl")
|
include("housing.jl")
|
||||||
export Housing
|
export Housing
|
||||||
|
|
||||||
|
|
||||||
@deprecate DataLoader(x...; kws...) DataLoader(x; kws...)
|
@deprecate DataLoader(x...; kws...) DataLoader(x; kws...)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -12,7 +12,7 @@ end
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
DataLoader(data; batchsize=1, shuffle=false, partial=true)
|
DataLoader(data; batchsize=1, shuffle=false, partial=true)
|
||||||
|
|
||||||
An object that iterates over mini-batches of `data`, each mini-batch containing `batchsize` observations
|
An object that iterates over mini-batches of `data`, each mini-batch containing `batchsize` observations
|
||||||
(except possibly the last one).
|
(except possibly the last one).
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ Example usage:
|
|||||||
|
|
||||||
train_loader.data # original dataset
|
train_loader.data # original dataset
|
||||||
|
|
||||||
# similar but yielding tuples
|
# similar, but yielding tuples
|
||||||
train_loader = DataLoader((Xtrain,), batchsize=2)
|
train_loader = DataLoader((Xtrain,), batchsize=2)
|
||||||
for (x,) in train_loader
|
for (x,) in train_loader
|
||||||
@assert size(x) == (10, 2)
|
@assert size(x) == (10, 2)
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
@deprecate param(x) x
|
@deprecate param(x) x
|
||||||
@deprecate data(x) x
|
@deprecate data(x) x
|
||||||
|
Loading…
Reference in New Issue
Block a user