diff options
author | Patrick Simianer <p@simianer.de> | 2011-09-25 20:23:09 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2011-09-25 20:23:09 +0200 |
commit | fe471bb707226052551d75b043295ca5f57261c0 (patch) | |
tree | 73ba37bf8d5c1de6de50f63888a49e918e4a8cd4 /dtrain/test/logreg/bin_class.h | |
parent | 5e1ab3481551607f1c2a10027049044cd41f78ab (diff) |
removed some quirks, less boost, prettier code, score_t
Diffstat (limited to 'dtrain/test/logreg/bin_class.h')
-rw-r--r-- | dtrain/test/logreg/bin_class.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/dtrain/test/logreg/bin_class.h b/dtrain/test/logreg/bin_class.h deleted file mode 100644 index 3466109a..00000000 --- a/dtrain/test/logreg/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 |