generate_weights_matrix {metasnf} | R Documentation |
Generate a matrix to store feature weights
Description
Generate a matrix to store feature weights
Usage
generate_weights_matrix(data_list = NULL, nrow = 1, fill = "ones")
Arguments
data_list |
A nested list of input data from |
nrow |
Number of rows to generate the template weights matrix for. |
fill |
String indicating what to populate generate rows with. Can be "ones" (default; fill matrix with 1), "uniform" (fill matrix with uniformly distributed random values), or "exponential" (fill matrix with exponentially distributed random values). |
Value
weights_matrix A properly formatted matrix containing columns for all the features that require weights and rows.
[Package metasnf version 1.1.2 Index]