trainModel,RLSModel-method {PDATK} | R Documentation |
trainMatrix
.Uses the switchBox SWAP.Train.KTSP function to fit a number of k top scoring pair models to the data, filtering the results to the best models based on the specified paramters.
## S4 method for signature 'RLSModel' trainModel(object, numModels = 10, minAccuracy = 0, ...)
object |
A |
numModels |
An |
minAccuracy |
This parameter should be set to zero, since we do not expect the permuted models to perform well. Setting this higher will result in an ensemble with very few models included. |
... |
Fall through arguments to |
This function is parallelized with BiocParallel, thus if you wish to change the back-end for parallelization, number of threads, or any other parallelization configuration please pass BPPARAM to bplapply.
A PCOSP
object with the trained model in the model
slot.
switchBox::SWAP.KTSP.Train BiocParallel::bplapply
data(sampleRLSmodel) set.seed(getModelSeed(sampleRLSmodel)) # Set parallelization settings BiocParallel::register(BiocParallel::SerialParam()) trainedRLSmodel <- trainModel(sampleRLSmodel, numModels=2)