Skip to content

Commit

Permalink
removed a check that did not make sense
Browse files Browse the repository at this point in the history
  • Loading branch information
karlnapf committed Jul 22, 2011
1 parent 68f6f71 commit c3629a8
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/shogun/machine/KernelMachine.cpp
Expand Up @@ -209,15 +209,6 @@ float64_t CKernelMachine::apply(int32_t num)
{
ASSERT(kernel);

/* check that lhs does not have a subset. Might be very bad because of a
* sv index kaboom: the sv indices are the ones for the original training
* data, not for the subset, so better just forbid this */
CFeatures* lhs=kernel->get_lhs();
if (lhs && lhs->has_subset())
SG_ERROR("A subset on the lhs is not allowed when calling apply().\n");

SG_UNREF(lhs);

if (kernel->has_property(KP_LINADD) && (kernel->get_is_initialized()))
{
float64_t score = kernel->compute_optimized(num);
Expand Down

0 comments on commit c3629a8

Please sign in to comment.