mapobs
function
defined in module
MLUtils
mapobs(fs, data)
Lazily map each function in tuple
fs
over the observations in data container
data
. Returns a tuple of transformed data containers.
mapobs(namedfs::NamedTuple, data)
Map a
NamedTuple
of functions over
data
, turning it into a data container of
NamedTuple
s. Field syntax can be used to select a column of the resulting data container.
data
=
1
:
10
nameddata
=
mapobs
(
(
x
=
sqrt
,
y
=
log
)
,
data
)
getobs
(
nameddata
,
10
)
==
(
x
=
sqrt
(
10
)
,
y
=
log
(
10
)
)
getobs
(
nameddata
.
x
,
10
)
==
sqrt
(
10
)
There are
4
methods for MLUtils.mapobs
:
The following pages link back here:
Data containers, Keypoint regression, Presizing vision datasets for performance, Siamese image similarity, Tabular Classification, fastai API comparison
FastAI.jl , datasets/Datasets.jl , datasets/load.jl , FastVision.jl , encodings/imagepreprocessing.jl , recipes.jl , MLUtils.jl , obstransform.jl