Commit 28ccd80e65fb713844f945932f9c06596db55f02
1 parent
84e9eb38
fixed Brendan's code
Showing
1 changed file
with
2 additions
and
2 deletions
openbr/plugins/turk.cpp
| ... | ... | @@ -105,8 +105,8 @@ class TurkClassifierTransform : public Transform |
| 105 | 105 | { |
| 106 | 106 | QStringList classifiers; |
| 107 | 107 | foreach (const QString &value, values) |
| 108 | - classifiers.append(QString("SVM(RBF,EPS_SVR,returnDFVal=true,inputVariable=%1,outputVariable=predicted_%1)%2").arg(key + "_" + value).arg(isMeta ? QString("+Average+SaveMat(predicted_%1)").arg(value) : "")); | |
| 109 | - QString algorithm = classifiers.join("/") + (classifiers.size() > 1 ? "+Cat" : ""); | |
| 108 | + classifiers.append(QString("(SVM(RBF,EPS_SVR,returnDFVal=true,inputVariable=%1,outputVariable=predicted_%1)%2)").arg(key + "_" + value, isMeta ? QString("+Average+SaveMat(predicted_%1)").arg(value) : QString())); | |
| 109 | + child = Transform::make(classifiers.join("/") + (classifiers.size() > 1 ? "+Cat" : "")); | |
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | void train(const QList<TemplateList> &data) | ... | ... |