Skip to content

Commit

Permalink
Fixed mkl applying in static
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Apr 21, 2012
1 parent 08e238f commit d453d98
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/shogun/ui/GUIClassifier.cpp
Expand Up @@ -407,11 +407,6 @@ bool CGUIClassifier::new_classifier(char* name, int32_t d, int32_t from_d)
SG_UNREF(classifier);
classifier= new CMKLClassification();
}
//else if (strcmp(name,"MKL_MULTICLASS")==0)
//{
// SG_UNREF(classifier);
// classifier= new CMKLClassification();
//}
else if (strcmp(name,"MKL_ONECLASS")==0)
{
SG_UNREF(classifier);
Expand Down Expand Up @@ -1204,7 +1199,8 @@ CLabels* CGUIClassifier::classify_kernelmachine()
SG_ERROR("Kernel not initialized.\n");

EClassifierType type = classifier->get_classifier_type();
if (type==CT_LARANK || type==CT_GMNPSVM || type==CT_LIBSVMMULTICLASS)
if (type==CT_LARANK || type==CT_GMNPSVM || type==CT_LIBSVMMULTICLASS ||
type==CT_MKLMULTICLASS)
{
CKernelMulticlassMachine* kmcm = (CKernelMulticlassMachine*) classifier;
kmcm->set_kernel(ui->ui_kernel->get_kernel());
Expand Down

0 comments on commit d453d98

Please sign in to comment.