summaryrefslogtreecommitdiff
path: root/training/liblbfgs/ll_test.cc
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2012-05-13 16:18:43 -0700
committerChris Dyer <cdyer@cs.cmu.edu>2012-05-13 16:18:43 -0700
commitb56da6f08c4f59b562a102671ac3deb135b0538a (patch)
treee97badb0a2e8c4ceff9468bcbc0d9458f935381c /training/liblbfgs/ll_test.cc
parent5d2fba19f7989b8a2c55834a5735f5fd5b60197c (diff)
fast creg training code for univariate linear and logistic regression
Diffstat (limited to 'training/liblbfgs/ll_test.cc')
-rw-r--r--training/liblbfgs/ll_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/training/liblbfgs/ll_test.cc b/training/liblbfgs/ll_test.cc
index 43c0f214..48bc0366 100644
--- a/training/liblbfgs/ll_test.cc
+++ b/training/liblbfgs/ll_test.cc
@@ -5,7 +5,7 @@ using namespace std;
// Function must be lbfgsfloatval_t f(x.begin, x.end, g.begin)
lbfgsfloatval_t func(const vector<lbfgsfloatval_t>& x, lbfgsfloatval_t* g) {
- int i;
+ unsigned i;
lbfgsfloatval_t fx = 0.0;
for (i = 0;i < x.size();i += 2) {
@@ -24,7 +24,7 @@ void Opt(F& f) {
lbfgs.MinimizeFunction();
}
-int main(int argc, char** argv) {
+int main() {
Opt(func);
return 0;
}