svm-struct官方网站:http://www.cs.cornell.edu/people/tj/svm_light/svm_struct.html
个人翻译的svm_struct_learn文件,翻译的有些粗糙,望不要介意!希望对你有帮助!
<span style="font-size:18px;">SVM_STRUCT_LEARN Calls the SVM-struct solver
MODEL = SVM_STRUCT_LEARN(ARGS, PARM)
runs SVM-struct solver with parameters ARGS on the problem PARM.
See [1-6] for the theory. SPARM is a structure of with the fields
运行SVM-struct通过参数ARGS解决PARM问题。看参考文献[1-6]理解原理。
SPARM的构成如下
PATTERNS:: patterns (X)
A cell array of patterns. The entries can have any nature
(they can just be indexes of the actual data for example).
一种单元阵列,输入可以有任何性质的
LABELS:: labels (Y)
A cell array of labels. The entries can have any nature.
LOSSFN:: loss function callback
A handle to the loss function. This function has the form
L = LOSS(PARAM, Y, YBAR) where PARAM is the SPARM structure,
Y a ground truth label, YBAR another label, and L a
non-negative scalar.
损失函数操作,形式为L = LOSS(PARAM, Y, YBAR),PARAM是SAPRM结构,
Y是分类标签(在机器学习中,术语“ground truth”指的是用于有监督训
练的训练集的分类准确性。),YBAR为其他标签。L是一个非负标量。
CONSTRAINTFN:: constraint callback
A handle to the constraint generation function. This function
has the form YBAR = FUNC(PARAM, MODEL, X, Y) where PARAM is
the input PARM structure, MODEL is the a structure
representing the current model, X is an input pattern, and Y
is its ground truth label. YBAR is the most violated labels.
约束生成函数操作,形式为YBAR = FUNC(PARAM, MODEL, X, Y),
PARAM参数输入为PARM参数,MODEL代表当前模型,X是需要输入的数据,Y是分类标签。
YBAR是
FEATUREN:: feature map callback
A handle to the feature map. This funct