Skip to content

Commit

Permalink
init(lhs,data) even for combined kernel in apply()
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed Jul 8, 2012
1 parent c23a3c1 commit 3702954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shogun/machine/KernelMachine.cpp
Expand Up @@ -260,7 +260,7 @@ SGVector<float64_t> CKernelMachine::apply_get_outputs(CFeatures* data)
data->get_name());
}

if (data && kernel->get_kernel_type()!=K_COMBINED)
if (data)
{
CFeatures* lhs=kernel->get_lhs();
REQUIRE(lhs, "%s: No left hand side specified\n", get_name());
Expand Down

0 comments on commit 3702954

Please sign in to comment.