python sklearn accuracy score for two different list
You have to convert the array to list to make it work
This should do for you
accuracy_score(y_test.tolist(),labs)
I have two lists
y_test = array('B', [1, 2, 3, 4, 5])
and 
labs = [1, 2, 3, 4, 5]
In sklearn, when i do print accuracy_score(y_test,labs), i get error

ValueError: Expected array-like (array or non-string sequence), got array('B', [1, 2, 3, 4, 5]).

I tried to compare it using print accuracy_score(y_test['B'],labs) but it is showing 

TypeError: array indices must be integers