I have 4 dimensions of data. In R, I’m using plot3d with the 4th dimension being color. I’d like to now use SVM to find the best regression line to give me the best correlation. Basically, a best fit hyperplane dependent on the color dimension. How can I do this?
Share
This is the basic idea (of course the specific formula will vary depending on your variable names and which is the dependent):
Then you can use regular
summary,plot,predict, etc. functions on the fit object. Note that with SVMs, the hyper-parameters usually need to be tuned for best results. you can do this with thetunewrapper. Also check out thecaretpackage, which I think is great.