Learning to Recognize Compatibility