'How to assign a new class to a test image that was unobserved in training dataset?

I am building a keras CNN model for a multi-class classification problem where if test dataset image is new to the model, 'new_indivisual' class should be assigned to it. How can I do it?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source