Я пытаюсь построить график в Google Colab
fig = plt.figure()
plt.title("Weight matrices after model trained")
plt.subplot(1, 3, 1)
plt.title("Trained model Weights")
ax = sns.violinplot(y=h1_w,color='b')
plt.xlabel('Hidden Layer 1')
plt.subplot(1, 3, 2)
plt.title("Trained model Weights")
ax = sns.violinplot(y=h2_w, color='r')
plt.xlabel('Hidden Layer 2 ')
plt.subplot(1, 3, 3)
plt.title("Trained model Weights")
ax = sns.violinplot(y=out_w,color='y')
plt.xlabel('Output Layer ')
plt.show()
График не отображается, а также показывает предупреждение - /usr/local/lib/python3.6/dist- packages / ipykernel_launcher.py: 8: RuntimeWarning: открыто более 20 фигур. Рисунки, созданные через интерфейс pyplot (matplotlib.pyplot.figure
), сохраняются до тех пор, пока не будут явно закрыты, и могут занимать слишком много памяти. (Для управления этим предупреждением см. RcParam figure.max_open_warning
).
Как ro решить эту проблему