On Classification with Bags, Groups and Sets