summaryrefslogtreecommitdiff
path: root/dtrain/test/log_reg/log_reg.h
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2011-09-08 00:06:52 +0200
committerPatrick Simianer <p@simianer.de>2011-09-23 19:13:58 +0200
commit0269777fc54bc554c12107bdd5498f743df2a1ce (patch)
tree05032f88088c2154b4c0ce815bb176ac49dc9b7e /dtrain/test/log_reg/log_reg.h
parentbcf45fc73bd855a3003dee7a8a0b7551eeb0523b (diff)
a lot of stuff, fast_sparse_vector, perceptron, removed sofia, sample [...]
Diffstat (limited to 'dtrain/test/log_reg/log_reg.h')
-rw-r--r--dtrain/test/log_reg/log_reg.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/dtrain/test/log_reg/log_reg.h b/dtrain/test/log_reg/log_reg.h
new file mode 100644
index 00000000..ecc560b8
--- /dev/null
+++ b/dtrain/test/log_reg/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