batchgetter_categ: Batchgetter for Categorical data

View source: R/task_dataset.R

batchgetter_categR Documentation

Batchgetter for Categorical data

Description

Converts a data frame of categorical data into a long tensor by converting the data to integers. No input checks are performed.

All columns are encoded with 1-based codes, i.e. the values of a feature with cardinality k are ⁠1, ..., k⁠.

Usage

batchgetter_categ(data, ...)

Arguments

data

(data.table)
data.table to be converted to a tensor.

...

(any)
Unused.


mlr3torch documentation built on Oct. 30, 2026, 5:10 p.m.