mirror of
https://github.com/opencv/opencv.git
synced 2025-07-24 14:06:27 +08:00
Merge pull request #8715 from berak:fix_digits_py
This commit is contained in:
commit
aaabb07bee
@ -109,7 +109,7 @@ def evaluate_model(model, digits, samples, labels):
|
||||
|
||||
confusion = np.zeros((10, 10), np.int32)
|
||||
for i, j in zip(labels, resp):
|
||||
confusion[i, j] += 1
|
||||
confusion[i, int(j)] += 1
|
||||
print('confusion matrix:')
|
||||
print(confusion)
|
||||
print()
|
||||
|
Loading…
Reference in New Issue
Block a user