mlxtendのススメ - Qiita
「Python 機械学習プログラミング」では自前実装の plot_decision_regions
が用いられているが、 mlxtend
を使えば同名の関数が使えて、良い感じに適当にやってくれるみたいだ。ははは、なんて都合の良い。
mlxtend · PyPIということで予想通りに作者が同じと。
- Home - mlxtend
- GitHub - rasbt/mlxtend: A library of extension and helper modules for Python's data analysis and machine learning libraries.
も参考に。
- https://github.com/rasbt/python-machine-learning-book-2nd-edition/blob/master/code/ch02/ch02.py#L238-L264
- https://github.com/rasbt/mlxtend/blob/master/mlxtend/plotting/decision_regions.py#L46-L323
を比較すると、本のほうのものは大分と簡易版なんだなぁと思う。