brplus {utiml} | R Documentation |
BR+ or BRplus for multi-label Classification
Description
Create a BR+ classifier to predict multi-label data. This is a simple approach that enables the binary classifiers to discover existing label dependency by themselves. The main idea of BR+ is to increment the feature space of the binary classifiers to let them discover existing label dependency by themselves.
Usage
brplus(
mdata,
base.algorithm = getOption("utiml.base.algorithm", "SVM"),
...,
cores = getOption("utiml.cores", 1),
seed = getOption("utiml.seed", NA)
)
Arguments
mdata |
A mldr dataset used to train the binary models. |
base.algorithm |
A string with the name of the base algorithm. (Default:
|
... |
Others arguments passed to the base algorithm 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: |
Details
This implementation has different strategy to predict the final set of labels for unlabeled examples, as proposed in original paper.
Value
An object of class BRPmodel
containing the set of fitted
models, including:
- freq
The label frequencies to use with the 'Stat' strategy
- initial
The BR model to predict the values for the labels to initial step
- models
A list of final models named by the label names.
References
Cherman, E. A., Metz, J., & Monard, M. C. (2012). Incorporating label dependency into the binary relevance framework for multi-label classification. Expert Systems with Applications, 39(2), 1647-1655.
See Also
Other Transformation methods:
br()
,
cc()
,
clr()
,
dbr()
,
ebr()
,
ecc()
,
eps()
,
esl()
,
homer()
,
lift()
,
lp()
,
mbr()
,
ns()
,
ppt()
,
prudent()
,
ps()
,
rakel()
,
rdbr()
,
rpc()
Other Stacking methods:
mbr()
Examples
# Use SVM as base algorithm
model <- brplus(toyml, "RANDOM")
pred <- predict(model, toyml)
# Use Random Forest as base algorithm and 2 cores
model <- brplus(toyml, 'RF', cores = 2, seed = 123)