From Pattern Classification to Active Learning