Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJake Hofman <jhofman@gmail>2013-07-02 22:30:58 +0400
committerJake Hofman <jhofman@gmail>2013-07-02 22:30:58 +0400
commit64536b4c38efba1b1b617c2036aafd7d3a356201 (patch)
tree0c2e175dac825d76f8206f77088dab61d648a449 /vowpalwabbit/mf.cc
parentc2987cfc2a4154a5b057a2bbc9a39c12d0c84e32 (diff)
switching branches
Diffstat (limited to 'vowpalwabbit/mf.cc')
-rw-r--r--vowpalwabbit/mf.cc10
1 files changed, 0 insertions, 10 deletions
diff --git a/vowpalwabbit/mf.cc b/vowpalwabbit/mf.cc
index 8a820c7c..5320d2ed 100644
--- a/vowpalwabbit/mf.cc
+++ b/vowpalwabbit/mf.cc
@@ -69,8 +69,6 @@ void inline_predict(mf* data, vw* all, example* &ec) {
// store namespace indices
copy_array(data->indices, ec->indices);
- // store namespace indices
- //copy_array(data->indices, ec->indices);
// add interaction terms to prediction
for (vector<string>::iterator i = data->pairs.begin(); i != data->pairs.end(); i++) {
@@ -127,8 +125,6 @@ void learn(void* d, example* ec) {
// predict with current weights
inline_predict(data, all, ec);
- float err = fabs(((label_data*) ec->ld)->label - ec->final_prediction);
-
// force base learner to use precomputed prediction
ec->precomputed_prediction = true;
@@ -187,12 +183,6 @@ void learn(void* d, example* ec) {
copy_array(ec->indices, data->indices);
ec->precomputed_prediction = false;
-
- // predict with current weights
- //inline_predict(data, all, ec);
- float new_err = fabs(((label_data*) ec->ld)->label - ec->final_prediction);
- //if (new_err > err)
- // cout << "error increased after training from " << err << " to " << new_err << endl;
}
void finish(void* data) {