How to visualize the equation used by cubic polynomial regression SVM?

8 views (last 30 days)
I would like to know how I can view the equation and model parameters for a trained correlation model.
Currently, I have a cubic SVM model that can predict the response sufficiently well, and I need to know how the parameters have been combined and which combination of parameters have the larger influence to the result.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 2 Sep 2021
Edited: MathWorks Support Team on 28 Sep 2021
You can refer to the "Nonlinear SVM Regression: Dual Formula" section of the following documentation link to see the equation being used by the cubic polynomial SVM:
As you can see, the equation is rather complicated (i.e. not a simple cubic polynomial equation form) and involves parameters such as alpha, beta and all the support vectors. (the "cubic" refers to the way the Gram matrix, G(xi,xj) is created)
While you would not be able to visualize the whole equation, you can access all the parameters used in the formula above by accessing the properties of your model:
>> alpha = model.RegressionSVM.Alpha
>> beta = model.RegressionSVM.Beta
>> supportVectors = model.RegressionSVM.SupportVectors
For visualization, you can make use of this model to compute predictions and plot the results, or compute residuals from the predictions and plot those.
Regarding visualizing the relative influence of each parameter, there is not a simple way that I can think of. However, you can use partial dependence plot to help you visualize the effect of each predictor on predictions from the model:
>> plotPartialDependence(model.RegressionSVM,2)

More Answers (0)

Products


Release

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!