Guest User

Untitled

a guest
Jul 19th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #ppnはパーセプトロンのインスタンス
  2. plot_decision_regions(X, y, classifier=ppn)
  3.  
  4. #それぞれの軸にラベルをつける
  5. plt.xlabel("sepal length [cm]")
  6. plt.ylabel("petal length [cm]")
  7.  
  8. #凡例をつける
  9. plt.legend(loc="upper left")
  10.  
  11. #表示
  12. plt.show()
Add Comment
Please, Sign In to add comment