from sklearn.metrics import accuracy_score accuracy = accuracy_score('''prediction''', '''lebels_test''' )