Learning in the Open World: Techniques for Identifying and Adapting to the Unknown