View source: R/03_PredictUsingLearnedModel.R
DoUnweightedTestSetupAndPrediction | R Documentation |
Predict the test values using the learned model.
DoUnweightedTestSetupAndPrediction(
inputDataTest,
model,
k = 2,
eigStep = 1,
colIdInd = "databaseId",
colIdOut = "databaseId",
useCutoff = FALSE,
covar = c(),
averaging = FALSE,
zeroOut = FALSE
)
inputDataTest |
An object of the IntLimData class corresponding to the test set. |
model |
An object of the ModelResults class corresponding to the optimized model. |
k |
The number of nearest neighbors to consider in localerr. |
eigStep |
The number of eigenvectors to step by during the evaluation in localerr. Note that this must be less than the number of samples in localerr. Default = 10. |
colIdInd |
The ID of the column that has the analyte ID's for the independent variable. If blank, then the existing ID's are used. |
colIdOut |
The ID of the column that has the analyte ID's for the outcome variable. If blank, then the existing ID's are used. |
useCutoff |
Whether or not to use the cutoff for prediction. Default is FALSE. |
covar |
A list of covariates. |
averaging |
If TRUE, then averaging is used to combine predictors rather than retaining the same functional form for both the input and the output. |
zeroOut |
This parameter zeros out predictors outside of the allowed range. |
A vector of final prediction values for the test data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.