triangle.corner(samples)と入力したら以下のようなエラーが出た。
AttributeError: module 'triangle' has no attribute 'corner'
調べてみると、triangle_plotをインストールする必要があるということなので、
pip install triangle_plot
と入力すると、
AttributeError: module 'triangle' has no attribute 'corner'
というエラーが再び吐き出された。
triangleをreloadする必要があるのかと、以下のようにしてリロードを試みると、
1 2 | import importlib importlib.reload(triangle) |
ImportError: 'triangle' has been renamed to 'corner'. Install that module: https://github.com/dfm/corner.py
どうやらmodule triangleはmodule cornerに取って代わられたみたいなので、
1 2 | pip uninstall triangle pip install corner |
triangle.cornerではなくて、corner.cornerと入力することで、このエラーを何とか修正することが出来たわけだが、古いtutorialはやはり敬遠した方が良さそうだ。
参考サイトhttps://stackoverflow.com/スポンサーリンク
スポンサーリンク