summaryrefslogtreecommitdiff
path: root/dtrain/test/logreg_cd/log_reg.h
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2011-11-21 12:21:08 +0100
committerPatrick Simianer <p@simianer.de>2011-11-21 12:21:08 +0100
commit574e2336348e5d3960b3232209d01845b40e6ea8 (patch)
tree958921d46db445acf3506a8f5620429682a4362a /dtrain/test/logreg_cd/log_reg.h
parent868d01c156914faaf85335c86374cc8f47a61b96 (diff)
added pro stuff,clean up
Diffstat (limited to 'dtrain/test/logreg_cd/log_reg.h')
-rw-r--r--dtrain/test/logreg_cd/log_reg.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/dtrain/test/logreg_cd/log_reg.h b/dtrain/test/logreg_cd/log_reg.h
new file mode 100644
index 00000000..ecc560b8
--- /dev/null
+++ b/dtrain/test/logreg_cd/log_reg.h
@@ -0,0 +1,14 @@
+#ifndef _LOG_REG_H_
+#define _LOG_REG_H_
+
+#include <vector>
+#include "sparse_vector.h"
+#include "bin_class.h"
+
+struct LogisticRegression : public Objective {
+ double ObjectiveAndGradient(const SparseVector<double>& x,
+ const std::vector<TrainingInstance>& training_instances,
+ SparseVector<double>* g) const;
+};
+
+#endif