Description Usage Arguments Value See Also Examples
This function predicts values based upon a model trained by br
.
1 2 3 4 5 6 7 8 9 |
object |
Object of class ' |
newdata |
An object containing the new input data. This must be a matrix, data.frame or a mldr object. |
probability |
Logical indicating whether class probabilities should be
returned. (Default: |
... |
Others arguments passed to the base algorithm prediction for all subproblems. |
cores |
The number of cores to parallelize the training. Values higher
than 1 require the parallel package. (Default:
|
seed |
An optional integer used to set the seed. This is useful when
the method is run in parallel. (Default: |
An object of type mlresult, based on the parameter probability.
1 2 3 4 5 6 7 8 9 10 11 12 13 | model <- br(toyml, "RANDOM")
pred <- predict(model, toyml)
# Predict SVM scores
model <- br(toyml, "SVM")
pred <- predict(model, toyml)
# Predict SVM bipartitions running in 2 cores
pred <- predict(model, toyml, probability = FALSE, CORES = 2)
# Passing a specif parameter for SVM predict algorithm
pred <- predict(model, toyml, na.action = na.fail)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.