summaryrefslogtreecommitdiff
path: root/dtrain/test/log_reg/bin_class.h
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2011-09-24 23:46:49 +0200
committerPatrick Simianer <p@simianer.de>2011-09-24 23:46:49 +0200
commit5e1ab3481551607f1c2a10027049044cd41f78ab (patch)
treeb89cc3587f2e5d34f14f4b977f8a0909f62fe8e1 /dtrain/test/log_reg/bin_class.h
parent5584f300821e20369c25343222cd0e8faa393523 (diff)
cleaning up
Diffstat (limited to 'dtrain/test/log_reg/bin_class.h')
-rw-r--r--dtrain/test/log_reg/bin_class.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/dtrain/test/log_reg/bin_class.h b/dtrain/test/log_reg/bin_class.h
deleted file mode 100644
index 3466109a..00000000
--- a/dtrain/test/log_reg/bin_class.h
+++ /dev/null
@@ -1,22 +0,0 @@
-#ifndef _BIN_CLASS_H_
-#define _BIN_CLASS_H_
-
-#include <vector>
-#include "sparse_vector.h"
-
-struct TrainingInstance {
- // TODO add other info? loss for MIRA-type updates?
- SparseVector<double> x_feature_map;
- bool y;
-};
-
-struct Objective {
- virtual ~Objective();
-
- // returns f(x) and f'(x)
- virtual double ObjectiveAndGradient(const SparseVector<double>& x,
- const std::vector<TrainingInstance>& training_instances,
- SparseVector<double>* g) const = 0;
-};
-
-#endif