A Similarity-Based Classification Framework for Multiple-Instance Learni