Description Usage Arguments Value Examples
View source: R/dataForSummaryFunction.R
Creates a data frame from an object of class holdOutPredictions
that can be passsed to the data
argument of puSummary
function.
1 | dataForSummaryFunction(x, threshold = 0, newUn = NULL, ...)
|
x |
an object of class |
threshold |
threshold used to binarize the data |
newUn |
predictions of new unlabeled samples to be used to replace the unlabeled hold-out predictions of |
... |
other in case |
a data frame that can be passed to the data
argument of puSummary
function.
1 2 3 4 5 6 7 8 9 | ## Not run:
data(bananas)
model <- trainOcc(x=bananas$tr[, -1], y=bananas$tr[, 1], method="ocsvm")
hop <- holdOutPredictions(model) # returns aggregated
d <- dataForSummaryFunction(hop)
hop <- holdOutPredictions(model, partition = 1)
d <- dataForSummaryFunction(hop)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.