prepare_data {sglOptim} | R Documentation |
Creates a sgldata data object from a matrix or vector
prepare_data(x, default = NULL, type = "numeric", sparse = is(x, "sparseMatrix"))
x |
the matrix, |
default |
default value, returned if x is null |
type |
data type, 'numeric' or 'integer' |
sparse |
if TRUE |
Martin Vincent
Other sgldata: add_data.sgldata
,
create.sgldata
,
prepare.args.sgldata
,
prepare.args
,
rearrange.sgldata
,
subsample.sgldata