333
правки
Изменения
→Перцептрон
print(confusion_matrix(y_test,predictions))
print(classification_report(y_test,predictions))
> '''[[ 7 0 0]'''
'''[ 0 8 1]'''
'''[ 0 2 12]]'''
'''precision recall f1-score support'''
'''0 1.00 1.00 1.00 7'''
'''1 0.80 0.89 0.84 9'''
'''2 0.92 0.86 0.89 14'''
'''micro avg 0.90 0.90 0.90 30'''
'''macro avg 0.91 0.92 0.91 30'''
'''weighted avg 0.90 0.90 0.90 30'''
==Tensorflow==