TestData: TestData Class

TestDataR Documentation

TestData Class

Description

This class implements TestData object to be predicted. A TestData object can only exist as a component of a TestLayer or a TestMetaLayer object.

Super class

fuseMLR::Data -> TestData

Methods

Public methods

Inherited methods

Method new()

Initialize a new object from the current class.

Usage
TestData$new(id, data_frame, new_layer)
Arguments
id

character
Object ID.

data_frame

data.frame
data.frame containing data.

new_layer

TestLayer
Layer where to store the current object.

ind_col

character
Column name containing individual IDs.


Method print()

Printer

Usage
TestData$print(...)
Arguments
...

any


Method getData()

Getter of the current data.frame wihtout individual ID variable.

Usage
TestData$getData()
Returns

The data.frame without individual ID nor target variables is returned.


Method getTestLayer()

Getter of the current layer.

Usage
TestData$getTestLayer()
Returns

The layer (from class TestLayer) on which the current train data are stored is returned.


Method clone()

The objects of this class are cloneable with this method.

Usage
TestData$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

See Also

TrainData


fuseMLR documentation built on April 3, 2025, 8:49 p.m.