Skip to content

Commit

Permalink
added some debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
karlnapf committed Jul 8, 2012
1 parent 1bc6e55 commit 96f7942
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/shogun/evaluation/CrossValidation.cpp
Expand Up @@ -174,6 +174,7 @@ float64_t CCrossValidation::evaluate_one_run()
/* different behavior whether data is locked or not */
if (m_machine->is_data_locked())
{
SG_DEBUG("starting locked evaluation\n", get_name());
/* do actual cross-validation */
for (index_t i=0; i <num_subsets; ++i)
{
Expand Down Expand Up @@ -203,10 +204,13 @@ float64_t CCrossValidation::evaluate_one_run()

/* clean up */
SG_UNREF(result_labels);

SG_DEBUG("done locked evaluation\n", get_name());
}
}
else
{
SG_DEBUG("starting unlocked evaluation\n", get_name());
/* tell machine to store model internally
* (otherwise changing subset of features will kaboom the classifier) */
m_machine->set_store_model_features(true);
Expand Down Expand Up @@ -262,6 +266,8 @@ float64_t CCrossValidation::evaluate_one_run()
SG_UNREF(result_labels);
m_labels->remove_subset();
}

SG_DEBUG("done unlocked evaluation\n", get_name());
}

/* build arithmetic mean of results */
Expand Down

0 comments on commit 96f7942

Please sign in to comment.