Support Vector Machine Regression (fitrsvm). How to estimate "b" and Gram matrix

2 views (last 30 days)
I ran "fitrsvm" support vector machine regression. The regression converged with "polynomial" as "KernelFunction". The input data is [30x5] matrix. Some of the coefficients: Box Constraints-1 Epsilon 0.024395848776872 Bias 1.778701572977303 Need to know how to calculate this gramian matrix.(G(xn,x)). What is Xn and X stands for. Also how to calculate "b"
Please help

Answers (1)

the cyclist
the cyclist on 24 Feb 2016
If you defined your model object as
mdl = fitrsvm(...)
then I think the slope coefficients are in
mdl.Beta
and the bias (constant term) is
mdl.Bias
  2 Comments
Md Mahmud
Md Mahmud on 29 Feb 2016
Thank you very much. I have the coefficients after running the regression. However, I am looking for code which will display the regression equation e.g. y~a0+a1*X1^n+a2*X2^p+.....
the cyclist
the cyclist on 15 Mar 2016
Edited: the cyclist on 15 Mar 2016
You should be able to use
Y = predict(mdl,X)
to get the model's predicted Y values at values of X, and then plot those.

Sign in to comment.

Products

Community Treasure Hunt

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

Start Hunting!