a list including (1) bag-level labels, Z, (2) the design matrix, X, and (3) bag ID of each instance, ID.
Arguments
n
an integer. The number of bags.
m
an integer or vector of length n. If m is an integer, each bag has the identical number of instances, m.
If m is a vector, the ith bag has m[i] instances.