Skip to content

Commit

Permalink
Added check to avoid crashes with combined kernel and data locking
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Jul 18, 2014
1 parent 6dbf911 commit fb569b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/shogun/machine/KernelMachine.cpp
Expand Up @@ -625,6 +625,8 @@ void CKernelMachine::data_lock(CLabels* labs, CFeatures* features)
{
if ( !kernel )
SG_ERROR("The kernel is not initialized\n")
if (kernel->has_property(EKernelProperty::KP_KERNCOMBINATION))
SG_ERROR("Locking is not supported (yet) with combined kernel. Please disable it in cross validation")

/* init kernel with data */
kernel->init(features, features);
Expand Down

0 comments on commit fb569b6

Please sign in to comment.