Description Usage Arguments Value Author(s)
This function modifies the keras model constructed using deeppam() to feature the data it should be tested on. This step is necessary due to the rigorous preprocessing needed for DeepPAM. newdata_str MUST be equivalent to the newdata argument of pec::pec. Internally, the test data is attached via the attributes of the R object.
1 2 3 4 5 6 7 | add_test_data(
model,
newdata_str,
newdata_unstr = list(),
training_ped,
formula = ped_status ~ s(tend, k = 9L)
)
|
model |
a keras model of additional subclass deeppam which should be evaluated. |
newdata_str |
the strucured new data for evaluation. A regular data set. newdata_str MUST be identical to the newdata argument used in pec:pec() later on. |
newdata_unstr |
the unstructured part of the data for evalution. Must match newdata_str. |
training_ped |
the PED used for training. |
formula |
the formula used to fit the model. (can be solved via attribute) |
the same model as inputted with a modified attribute set. The model can be handed over to pec::pec() only after this step.
Philipp Kopper
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.