Training now supports using sparse matrices.