Skip to content

Commit

Permalink
removed precomputed kernels (if there are any) while selecting kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
lambday committed Jun 28, 2016
1 parent 794ee49 commit 0beb10c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/shogun/statistical_testing/MMD.cpp
Expand Up @@ -330,12 +330,14 @@ void CMMD::select_kernel(EKernelSelectionMethod kmethod)
{
MaxMeasure policy(self->kernel_selection_mgr, this);
get_kernel_manager().kernel_at(0)=policy.select_kernel();
get_kernel_manager().restore_kernel_at(0);
break;
}
case EKernelSelectionMethod::MAXIMIZE_POWER:
{
MaxTestPower policy(self->kernel_selection_mgr, this);
get_kernel_manager().kernel_at(0)=policy.select_kernel();
get_kernel_manager().restore_kernel_at(0);
break;
}
default:
Expand Down

0 comments on commit 0beb10c

Please sign in to comment.