DataBlock: DataBlock

View source: R/blocks.R

DataBlockR Documentation

DataBlock

Description

Generic container to quickly build 'Datasets' and 'DataLoaders'

Usage

DataBlock(
  blocks = NULL,
  dl_type = NULL,
  getters = NULL,
  n_inp = NULL,
  item_tfms = NULL,
  batch_tfms = NULL,
  ...
)

Arguments

blocks

input blocks

dl_type

DL application

getters

how to get dataet

n_inp

n_inp is the number of elements in the tuples that should be considered part of the input and will default to 1 if tfms consists of one set of transforms

item_tfms

One or several transforms applied to the items before batching them

batch_tfms

One or several transforms applied to the batches once they are formed

...

additional parameters to pass

Value

Block object


fastai documentation built on June 22, 2024, 11:15 a.m.