DoTestSetupOnly: Sets up the test data so that it is in the correct format,...

View source: R/03_PredictUsingLearnedModel.R

DoTestSetupOnlyR Documentation

Sets up the test data so that it is in the correct format, then runs prediction on the test data. To do this: 1. Run pairwise prediction on the test data. 2. Run pairwise prediction on the training data. 3. Compute metafeatures on the test data. 4. Predict the test values using the learned model.

Description

Sets up the test data so that it is in the correct format, then runs prediction on the test data. To do this: 1. Run pairwise prediction on the test data. 2. Run pairwise prediction on the training data. 3. Compute metafeatures on the test data. 4. Predict the test values using the learned model.

Usage

DoTestSetupOnly(
  inputDataTest,
  model,
  k = 2,
  eigStep = 1,
  colIdInd = "databaseId",
  colIdOut = "databaseId",
  useCutoff = FALSE,
  covar = c()
)

Arguments

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.

Value

A vector of final prediction values for the test data.


ncats/MultiOmicsGraphPrediction documentation built on Aug. 23, 2023, 9:19 a.m.