前提・実現したいこと
pythonで機械学習を行う前準備としてScipyで勉強しています。
ランダムに発生させた点に対して凸包を求めようとしたところ、以下のようなエラーが発生しました。
同様のコードでDelaunay三角形分割、Voronoi図を求めようとしても同じエラーが発生しました。原因と改善策について教えていただきたいです。
発生している問題・エラーメッセージ
--------------------------------------------------------------------------- OSError Traceback (most recent call last) <ipython-input-3-c30f37c74563> in <module>() 1 from scipy.spatial import ConvexHull, convex_hull_plot_2d 2 points = np.random.rand(8, 2) ----> 3 hull = ConvexHull(points) 4 fig = convex_hull_plot_2d(tri) 5 print(hull.vertices) scipy/spatial/qhull.pyx in scipy.spatial.qhull.ConvexHull.__init__ (scipy\spatial\qhull.c:24141)() scipy/spatial/qhull.pyx in scipy.spatial.qhull._Qhull.__init__ (scipy\spatial\qhull.c:4554)() scipy/spatial/qhull.pyx in scipy.spatial.qhull._QhullMessageStream.__init__ (scipy\spatial\qhull.c:3629)() OSError: Failed to open file b'C:\Users\\xe6...\AppData\Local\Temp\qhull-err-n4uu8goh'
該当のソースコード
python
1from scipy.spatial import ConvexHull, convex_hull_plot_2d 2points = np.random.rand(8, 2) 3hull = ConvexHull(points) 4fig = convex_hull_plot_2d(hull) 5print(hull.vertices)
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/02/09 01:06