···python
plt.title("Model with Adam optimization")
axes = plt.gca()
axes.set_xlim([-1.5,2.5])
axes.set_ylim([-1,1.5])
plot_decision_boundary(lambda x: predict_dec(parameters, x.T), train_X, train_Y)
![](https://img2020.cnblogs.com/blog/817161/202006/817161-20200611211706385-690784152.png)