I am using scikit-learn to understand Support Vector Machines(SVM). I want to plot the decision boundary computed by SVM. The SVM uses 3 features. So the decision boundary must be drawn in 3D space. Is this possible using scikit-learn? I could find only 2D plots of SVM decision boundary at the official website. However I found links on stackoverflow which show this is possible using matlab and r. Is there a way in which I can achieve the same using scikit-learn?
相关问题
- Is GLFW designed to use without LWJGL (in java)?
- Plotting multiple columns with ggplot2 [duplicate]
- R markov chain package, is possible to set the coo
- Tick label text and frequency in matplotlib plot
- How to make limits on the Y axis be the same using
相关文章
- 关于使用SVM进行AE信号分类的问题
- How to plot smoother curves in R
- what is the difference between transformer and est
- How to add clipboard support to Matplotlib figures
- ValueError: Unknown label type: 'continuous
- Algorithm for partially filling a polygonal mesh
- Adding a legend to a matplotlib boxplot with multi
- Robust polygon normal calculation
You don't use scikit-learn to plot things in Python. You have to use another package, and if you check scikit-learn's examples, you will see they use matplotlib. You can create 3D plots with matplotlib, here is the tutorial. The usage is basically the same than in 2D, except you add an argument for the third dimension.
Another popular package you could use is mayavi, which was conceived especially for 3D plotting.