Creates a sgldata object from a design matrix and an optional response vector or matrix.
create.sgldata(x, y, response_dimension = .get_response_dimension(y),
response_names = .get_response_names(y), sparseX = is(x,
"sparseMatrix"), sparseY = is(y, "sparseMatrix"),
typeX = element_class(x), typeY = element_class(y))the design matrix, a matrix of size \(N \times p\) (will be parsed to the loss module as X).
the responses, NULL, a vector or a matrix (will be parsed to the loss module as matrix Y)..
number of models, that is the dimension of the returned response.
names of models, that is the names of the elements of the returned response.
if TRUE x will be treated as sparse, if FALSE x will be treated as dens.
if TRUE y will be treated as sparse, if FALSE y will be treated as dens.
type of the elements of x.
type of the elements of y.
Other sgldata: add_data.sgldata,
prepare.args.sgldata,
prepare.args, prepare_data,
rearrange.sgldata,
subsample.sgldata