Произошла ошибка при построении графика: задание элемента массива с последовательностью.
try:
# Plot accuracy graph
plt.figure(figsize=(10, 6))
plt.plot(["Teacher", "Assistant teacher", "Distilled student", "Student trained from scratch"],
[teacher_results, assistant_teacher_results, student_results, student_scratch_results],
marker='o')
plt.title('Accuracy Comparison')
plt.xlabel('Model')
plt.ylabel('Accuracy')
plt.ylim([0, 1])
plt.grid(True)
plt.show()
except Exception as e:
print("An error occurred while plotting the graph:", e)
Подробнее здесь: https://stackoverflow.com/questions/782 ... ssary-acti