DataSet.CSV: R6 class representing a LaF csv data loader

Description Details Public fields Methods Author(s)

Description

R6 class representing a LaF csv data loader

R6 class representing a LaF csv data loader

Details

It uses the capability of the LaF package to load sequentially batch of data from a csv file.

Public fields

df

stores the batch of data read from the csv file

Methods

Public methods


Method new()

Initialisation method.

Usage
DataSet.CSV$new(inf, n, yi, ...)
Arguments
inf

path to file or a LaF csv data model.

n

number of rows to read ecah time from the csv file

yi

indexes of the output variables

...

additional arguments for the LaF::detect_dm_csv function

si

index of slicing dimension after feature engineering


Method ..connect..()

Opens the connection with the csv file.

Usage
DataSet.CSV$..connect..(...)
Arguments
...

additional arguments for the LaF::laf_open function


Method ..get.data..()

Return a batch of data of the wanted size.

Usage
DataSet.CSV$..get.data..()
Arguments
n

size of the batch of data

...

additional arguments for the process fucntion


Method feed()

Feed a number with the data from the CSV file Returns X invisibly.

Usage
DataSet.CSV$feed(data = NULL, ...)
Arguments
data

list composed by X (containing the features) and Y (containing the targets). If NULL a the list is created. If provided the numbers in ti will be fed in place.

...

additional arguemnts to be passed to


Method dm()

Returns the data model.

Usage
DataSet.CSV$dm()

Method clone()

The objects of this class are cloneable with this method.

Usage
DataSet.CSV$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Author(s)

Filippo Monari


modello documentation built on Feb. 2, 2021, 9:06 a.m.

Related to DataSet.CSV in modello...