フィルターのクリア

Why support vectors values are negative using regression learner app?

1 回表示 (過去 30 日間)
Manoj kumar Beriya
Manoj kumar Beriya 2021 年 3 月 1 日
回答済み: Aditya Patil 2021 年 3 月 29 日
Trained model from regression learner app (Gaussian regression) provides some negative value of support vectors. Why is it happening?

採用された回答

Aditya Patil
Aditya Patil 2021 年 3 月 29 日
Support vectors are those data points that form the support vector, which are the two vectors (in higher dimension) which separate the data. So, if your data contains negative points, the support vectors may also be negative. Also note that preprocessing such as standardization changes input values, which can be seen from following example,
rng("default");
X = rand(100,1);
y = rand(100,1);
mdl = fitrsvm(X,y,'Standardize', true);
% These are the actual support vectors
supportVectors1 = mdl.SupportVectors;
% These are not the support vectors, but the data points which correspond to them
supportvectors2 = mdl.X(mdl.IsSupportVector);
sum(abs(supportvectors2 - supportVectors1)) % This is non zero if Standardize=true

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSupport Vector Machine Regression についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by