Skip to content

Commit

Permalink
Merge pull request #3220 from karlnapf/feature/qda_fix
Browse files Browse the repository at this point in the history
add REQUIRE that covariances were stored during training in get_cov m…
  • Loading branch information
karlnapf committed May 28, 2016
2 parents 158cb6d + 91aa67b commit 590f9f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/shogun/multiclass/QDA.h
Expand Up @@ -138,6 +138,8 @@ class CQDA : public CNativeMulticlassMachine
*/
inline SGMatrix< float64_t > get_cov(int32_t c) const
{
REQUIRE(m_store_covs, "Covariance matrices were not stored. "
"Please activate to access them subsequently.\n");
return SGMatrix< float64_t >(m_covs.get_matrix(c), m_dim, m_dim, false);
}

Expand Down

0 comments on commit 590f9f5

Please sign in to comment.