Fix Adaboost executable for Perceptron API change.

This commit is contained in:
Ryan Curtin
2015-09-08 13:52:49 +00:00
parent 4bcc6e6409
commit 14e1f4fb7c
@@ -125,7 +125,7 @@ int main(int argc, char *argv[])
// defining the number of iterations of the perceptron.
int iter = 400;
perceptron::Perceptron<> p(trainingData, labels.t(), iter);
perceptron::Perceptron<> p(trainingData, labels.t(), max(labels) + 1, iter);
Timer::Start("Training");
AdaBoost<> a(trainingData, labels.t(), iterations, tolerance, p);
@@ -143,4 +143,4 @@ int main(int argc, char *argv[])
const string outputFilename = CLI::GetParam<string>("output_file");
data::Save(outputFilename, results, true, false);
return 0;
}
}