| classifyNewSamples-methods {Rmagpie} | R Documentation |
This method classify one or several new samples provided in the file 'newSamplesFile' using the final classifier build by 'findFinalClassifier'.
object |
|
newSamplesFile |
|
optionValue |
|
This method is only applicable on objects of class assessment.
data('vV70genesDataset')
expeOfInterest <- new("assessment", dataset=vV70genes,
noFolds1stLayer=10,
noFolds2ndLayer=9,
classifierName="svm",
typeFoldCreation="original",
svmKernel="linear",
noOfRepeat=2,
featureSelectionOptions=new("geneSubsets", optionValues=c(1,2,4,8,16,32,64,70)))
# Build the final classifier
expeOfInterest <- findFinalClassifier(expeOfInterest)
## Not run:
classifyNewSamples(expeOfInterest, "pathToFile/testSamples_geneExpr.txt", 4)
## End(Not run)
expeOfInterest <- runOneLayerExtCV(expeOfInterest)
## Not run:
classifyNewSamples(expeOfInterest, "pathToFile/testSamples_geneExpr.txt")
## End(Not run)