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
commit69b0bf8d618338c82fda17878defff77fb35a69f (patch)
tree3f001b9e6b9a38ec3a3523d2ea2ebd2bef47f260 /training/liblbfgs/ll_test.cc
parenta097d3ea4132ba4c39c670185a3f4237d24030f9 (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;
}