简体   繁体   English

支持向量回归以使用libSVM进行相似性预测

[英]Support vector regression for similarity prediction using libSVM

I want to do support vector regression using LibSVM. 我想使用LibSVM支持向量回归。 I want the similarity score for faces. 我想要面孔的相似度分数。 Now when I will train my faces, I will have shape face feataures as independent variable and score (any value between 0.1-1.0) as my dependent variable. 现在,当我训练脸部时,我会将具有形状的脸部特征作为自变量,并将得分(在0.1-1.0之间的任何值)作为因变量。 a true positive face will train as 1.0. 正面的正面将训练为1.0。 Otherwise portion of faces will be trained as score between 0.1-1.0 based on the quality of the training images. 否则,将基于训练图像的质量将脸部的部分训练为得分在0.1-1.0之间。 At the prediction stage, I want a score between 0-1.0 when the shape feature for a test image have been given. 在预测阶段,当给出测试图像的形状特征时,我希望得分在0-1.0之间。 That means, we will have an one independent variable (feature vector) and one dependent variable (score between 0-1)dependent variable. 这意味着,我们将有一个自变量(特征向量)和一个因变量(0-1之间的分数)。

See http://www.csie.ntu.edu.tw/~cjlin/libsvmtools/#weights_for_data_instances to apply instance weights. 请参阅http://www.csie.ntu.edu.tw/~cjlin/libsvmtools/#weights_for_data_instances以应用实例权重。

In the LibSVM Matlab interface, the usage specification for svmpredict is: 在LibSVM Matlab界面中, svmpredict的使用规范为:

[predicted_label, accuracy, decision_values/prob_estimates] = svmpredict(testing_label_vector, testing_instance_matrix [, 'libsvm_option']);

I believe the third return argument decision_values/prob_estimates is what you are looking for output scores. 我相信第三个返回参数decision_values/prob_estimates是您要寻找的输出分数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM