Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added preprocessor init calls in crossvalidation
  • Loading branch information
lisitsyn committed Aug 13, 2012
1 parent c49b8cf commit a6cdaf5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/shogun/evaluation/CrossValidation.cpp
Expand Up @@ -248,6 +248,12 @@ float64_t CCrossValidation::evaluate_one_run(CModelSelectionOutput* ms_output)
SGVector<index_t> inverse_subset_indices=
m_splitting_strategy->generate_subset_inverse(i);
m_features->add_subset(inverse_subset_indices);
for (index_t p=0; p<m_features->get_num_preprocessors(); p++)
{
CPreprocessor* preprocessor = m_features->get_preprocessor(p);
preprocessor->init(m_features);
SG_UNREF(preprocessor);
}

/* set label subset for training */
m_labels->add_subset(inverse_subset_indices);
Expand Down

0 comments on commit a6cdaf5

Please sign in to comment.