numobs
function
defined in module
MLUtils
numobs(data)
Return the total number of observations contained in
data
.
If
data
does not have
numobs
defined, then this function falls back to
length(data)
. Authors of custom data containers should implement
Base.length
for their type instead of
numobs
.
numobs
should only be implemented for types where there is a difference between
numobs
and
Base.length
(such as multi-dimensional arrays).
See also
getobs
There are
5
methods for MLUtils.numobs
:
The following pages link back here:
Data containers, How to visualize data, Keypoint regression, Performant data pipelines, Presizing vision datasets for performance, Saving and loading models for inference, Siamese image similarity, Variational autoencoders
FastAI.jl , datasets/Datasets.jl , tasks/taskdata.jl , FastTabular.jl , FastVision.jl , encodings/imagepreprocessing.jl , recipes.jl , MLUtils.jl , batchview.jl , eachobs.jl , folds.jl , observation.jl , obstransform.jl , obsview.jl , parallel.jl , randobs.jl , resample.jl , splitobs.jl , utils.jl