Description Usage Arguments Details Value See Also Examples
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.
1 2 | ## S4 method for signature 'PCOSP'
trainModel(object, numModels = 10, minAccuracy = 0.6, ...)
|
object |
A |
numModels |
An |
minAccuracy |
A |
... |
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
1 2 3 4 5 6 7 | data(samplePCOSPmodel)
# Set parallelization settings
BiocParallel::register(BiocParallel::SerialParam())
set.seed(getModelSeed(samplePCOSPmodel))
trainModel(samplePCOSPmodel, numModels=2, minAccuracy=0.6)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.