Skip to content

Commit

Permalink
add REQUIRE that covariances were stored during training in get_cov m…
Browse files Browse the repository at this point in the history
…ethod
  • Loading branch information
karlnapf committed May 28, 2016
1 parent fe591d5 commit 91aa67b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/shogun/multiclass/QDA.h
Original file line number Diff line number Diff line change
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 91aa67b

Please sign in to comment.