Learning From Binary Matrix And Tensor Data With Sparsity