DataBlock: DataBlock

Description Usage Arguments Value

View source: R/blocks.R

Description

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

Usage

1
2
3
4
5
6
7
8
9
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 July 28, 2021, 5:06 p.m.