Skip to content

Commit

Permalink
added num runs check for confidence interval
Browse files Browse the repository at this point in the history
  • Loading branch information
karlnapf committed Feb 2, 2012
1 parent f0bdba7 commit d9cb8d8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/shogun/evaluation/CrossValidation.cpp
Expand Up @@ -119,6 +119,12 @@ void CCrossValidation::set_conf_int_alpha(float64_t conf_int_alpha)
"cross-validation\n", conf_int_alpha);
}

if (m_num_runs==1)
{
SG_ERROR("Confidence interval for Cross-Validation only possible"
" when number of runs is >1\n");
}

m_conf_int_alpha=conf_int_alpha;
}

Expand Down

0 comments on commit d9cb8d8

Please sign in to comment.