Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #364 from karlnapf/master
added check for confidence interval
  • Loading branch information
Soeren Sonnenburg committed Feb 2, 2012
2 parents f0bdba7 + d9cb8d8 commit 3eab618
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 3eab618

Please sign in to comment.