diff options
author | Patrick Simianer <p@simianer.de> | 2011-09-24 23:46:49 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2011-09-24 23:46:49 +0200 |
commit | 521e8c49ad529f17f63eca1726ba8e2f564ac290 (patch) | |
tree | c424d8a4aa1ffa9c3ef74cf6b7f1ab91ce8f948e /dtrain/test/logreg/log_reg.h | |
parent | c021d22e98844f1408b8ffb30f3c8e9a3c671899 (diff) |
cleaning up
Diffstat (limited to 'dtrain/test/logreg/log_reg.h')
-rw-r--r-- | dtrain/test/logreg/log_reg.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/dtrain/test/logreg/log_reg.h b/dtrain/test/logreg/log_reg.h new file mode 100644 index 00000000..ecc560b8 --- /dev/null +++ b/dtrain/test/logreg/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 |