Description Usage Arguments Details Value References See Also Examples
This function predicts values based upon a model trained by rdbr
.
In general this method is a recursive version of
predict.DBRmodel
.
1 2 3 4 5 6 7 8 9 10 11 12 |
object |
Object of class ' |
newdata |
An object containing the new input data. This must be a matrix, data.frame or a mldr object. |
estimative |
A matrix containing the bipartition result of other multi-label classification algorithm or an mlresult object with the predictions. |
max.iterations |
The maximum allowed iterations of the RDBR technique. (Default: 5) |
batch.mode |
Logical value to determine if use the batch re-estimation.
If |
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: |
Two versions of the update strategy of the estimated labels are implemented. The batch re-estimates the labels only when a complete current label vector is available. The stochastic uses re-estimated labels as soon as they become available. This second does not support parallelize the prediction, however stabilizes earlier than batch mode.
An object of type mlresult, based on the parameter probability.
Rauber, T. W., Mello, L. H., Rocha, V. F., Luchi, D., & Varejao, F. M. (2014). Recursive Dependent Binary Relevance Model for Multi-label Classification. In Advances in Artificial Intelligence - IBERAMIA, 206-217.
Recursive Dependent Binary Relevance (RDBR)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # Predict SVM scores
model <- rdbr(toyml)
pred <- predict(model, toyml)
# Passing a specif parameter for SVM predict algorithm
pred <- predict(model, toyml, na.action = na.fail)
# Use the batch mode and increase the max number of iteration to 10
pred <- predict(model, toyml, max.iterations = 10, batch.mode = TRUE)
# Using other classifier (EBR) to made the labels estimatives
estimative <- predict(ebr(toyml), toyml, probability = FALSE)
model <- rdbr(toyml, estimate.models = FALSE)
pred <- predict(model, toyml, estimative = estimative)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.