src/core/util.py
def print_accuracy(cluster_assignments, y_true, n_clusters, extra_identifier=''):
    '''
    Convenience function: prints the accuracy
    '''
    # get accuracy
    accuracy, confusion_matrix = get_accuracy(cluster_assignments, y_true, n_clusters)
    # get the confusion matrix
    print('confusion matrix{}: '.format(extra_identifier))
    print(confusion_matrix)
    print('spectralNet{} accuracy: '.format(extra_identifier) + str(np.round(accuracy, 3)))

    Convenience function: prints the accuracy
    
Convenience function: prints the accuracy
Convenience function : prints the accuracy
def print_accuracy(cluster_assignments, y_true, n_clusters, extra_identifier=''):
    accuracy, confusion_matrix = get_accuracy(cluster_assignments, y_true, n_clusters)
    print('confusion matrix{}: '.format(extra_identifier))
    print(confusion_matrix)
    print('spectralNet{} accuracy: '.format(extra_identifier) + str(np.round(accuracy, 3)))
def print_accuracy ( cluster_assignments , y_true , n_clusters , extra_identifier = '' ) : accuracy , confusion_matrix = get_accuracy ( cluster_assignments , y_true , n_clusters ) print ( 'confusion matrix{}: ' . format ( extra_identifier ) ) print ( confusion_matrix ) print ( 'spectralNet{} accuracy: ' . format ( extra_identifier ) + str ( np . round ( accuracy , 3 ) ) )
Convenience function: prints the accuracy
Convenience function : prints the accuracy
'''
    Convenience function: prints the accuracy
    ''' # get accuracy # get the confusion matrix
cluster_assignments
y_true
n_clusters
extra_identifier