Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ppnはパーセプトロンのインスタンス
- plot_decision_regions(X, y, classifier=ppn)
- #それぞれの軸にラベルをつける
- plt.xlabel("sepal length [cm]")
- plt.ylabel("petal length [cm]")
- #凡例をつける
- plt.legend(loc="upper left")
- #表示
- plt.show()
Add Comment
Please, Sign In to add comment