setWeights {UBayFS} | R Documentation |
Set weights in UBaymodel object
Description
Set the prior weights in a UBaymodel object.
Usage
setWeights(model, weights, block_list = NULL, block_matrix = NULL)
Arguments
model |
a UBaymodel object created using build.UBaymodel |
weights |
the vector of user-defined prior weights for each feature |
block_list |
the list of feature indices for each block; only required, if block-wise weights are specified and block_matrix is NULL |
block_matrix |
the matrix containing affiliations of features to each block; only required, if block-wise weights are specified and block_list is NULL |
Value
a UBaymodel object with updated prior weights
See Also
build.UBaymodel
[Package UBayFS version 1.0 Index]