TestMetaLayer {fuseMLR} | R Documentation |
TestMetaLayer Class
Description
This class implement a predicted meta layer. A TestMetaLayer can only exist as unique element of a Training object.
A predicted meta layer can only contain a TestData object.
Super class
fuseMLR::HashTable
-> TestMetaLayer
Methods
Public methods
Inherited methods
Method new()
constructor
Usage
TestMetaLayer$new(id, testing)
Arguments
id
character
Testing meta-layer id.testing
Testing
Method print()
Printer
Usage
TestMetaLayer$print(...)
Arguments
...
any
Method getTesting()
Getter of the current testing object.
Usage
TestMetaLayer$getTesting()
Returns
The current testing object is returned.
Method getTestData()
Getter of the training dataset stored on the current layer.
Usage
TestMetaLayer$getTestData()
Returns
The stored TestData object is returned.
Method openAccess()
Open access to the meta layer. A meta learner is only modifiable if the access is opened.
Usage
TestMetaLayer$openAccess()
Method closeAccess()
Close access to the meta layer to avoid accidental modification.
Usage
TestMetaLayer$closeAccess()
Method getAccess()
Getter of the current access to the meta layer.
Usage
TestMetaLayer$getAccess()
Method setTestData()
Create and set an TestData object to the current new meta learner.
Usage
TestMetaLayer$setTestData(id, ind_col, data_frame)
Arguments
id
character(1)
ID of the TestData object to be instanciated.ind_col
character(1)
Name of individual column IDs.data_frame
data.frame(1)
data.frame
of layer specific predictions.
Method checkTestDataExist()
Check whether a new data has been already stored.
Usage
TestMetaLayer$checkTestDataExist()
Returns
Boolean value