InceptionV3.py
def show_top5_result(self):
        """
        Visualize top 5 dog breeds that are predicted by the model via bar chart
        Parameters:
            None
        Return:
            None
        """
        top5_breeds_idx, top5_breeds_prob = self.predict_top5_breeds()
        top5_labels = [dog_names[idx] for idx in top5_breeds_idx]
        self.isMix_mutt(top5_breeds_prob, top5_labels)

        #plot top5 result
        plt.subplot(1,2,1)
        plt.barh(top5_labels, top5_breeds_prob)
        plt.xlabel('probability')
        plt.xlim(0, 1.0)
        plt.title('dog breeds classifer')
        plt.show()

        Visualize top 5 dog breeds that are predicted by the model via bar chart
        Parameters:
            None
        Return:
            None
        
Visualize top 5 dog breeds that are predicted by the model via bar chart
Parameters:
None
Return:
None
Visualize top 5 dog breeds that are predicted by the model via bar chart Parameters : None Return : None
def show_top5_result(self):
        top5_breeds_idx, top5_breeds_prob = self.predict_top5_breeds()
        top5_labels = [dog_names[idx] for idx in top5_breeds_idx]
        self.isMix_mutt(top5_breeds_prob, top5_labels)
        plt.subplot(1,2,1)
        plt.barh(top5_labels, top5_breeds_prob)
        plt.xlabel('probability')
        plt.xlim(0, 1.0)
        plt.title('dog breeds classifer')
        plt.show()
def show_top5_result ( self ) : top5_breeds_idx , top5_breeds_prob = self . predict_top5_breeds ( ) top5_labels = [ dog_names [ idx ] for idx in top5_breeds_idx ] self . isMix_mutt ( top5_breeds_prob , top5_labels ) plt . subplot ( 1 , 2 , 1 ) plt . barh ( top5_labels , top5_breeds_prob ) plt . xlabel ( 'probability' ) plt . xlim ( 0 , 1.0 ) plt . title ( 'dog breeds classifer' ) plt . show ( )
Visualize top 5 dog breeds that are predicted by the model via bar chart
Parameters:
None
Return:
None
Visualize top 5 dog breeds that are predicted by the model via bar chart Parameters : None Return : None
"""
        Visualize top 5 dog breeds that are predicted by the model via bar chart
        Parameters:
            None
        Return:
            None
        """ #plot top5 result
self