summaryrefslogtreecommitdiff
path: root/dtrain/test/log_reg_dyer/bin_class.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
commita0a109329c942ddc956205cc66ccac872fb8f222 (patch)
tree2788f8f14afb951bcb80538947459d676cc298bc /dtrain/test/log_reg_dyer/bin_class.h
parent1ce8f44fe74cb6fb9223c4a2a4050019fed3be49 (diff)
added pro stuff,clean up
Diffstat (limited to 'dtrain/test/log_reg_dyer/bin_class.h')
-rw-r--r--dtrain/test/log_reg_dyer/bin_class.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/dtrain/test/log_reg_dyer/bin_class.h b/dtrain/test/log_reg_dyer/bin_class.h
deleted file mode 100644
index 3466109a..00000000
--- a/dtrain/test/log_reg_dyer/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