Description Details Public fields Methods Author(s)
R6 class representing a LaF csv data loader
R6 class representing a LaF csv data loader
It uses the capability of the LaF package to load sequentially batch of data from a csv file.
df
stores the batch of data read from the csv file
new()
Initialisation method.
DataSet.CSV$new(inf, n, yi, ...)
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
..connect..()
Opens the connection with the csv file.
DataSet.CSV$..connect..(...)
...
additional arguments for the
LaF::laf_open
function
..get.data..()
Return a batch of data of the wanted size.
DataSet.CSV$..get.data..()
n
size of the batch of data
...
additional arguments for the process fucntion
feed()
Feed a number with the data from the CSV file Returns X invisibly.
DataSet.CSV$feed(data = NULL, ...)
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
dm()
Returns the data model.
DataSet.CSV$dm()
clone()
The objects of this class are cloneable with this method.
DataSet.CSV$clone(deep = FALSE)
deep
Whether to make a deep clone.
Filippo Monari
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.