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 authored and karlnapf committed Jul 4, 2016
1 parent 0d44801 commit c9ec9a7
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 c9ec9a7

Please sign in to comment.