Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/port mkl examples #4271

Merged

Conversation

karlnapf
Copy link
Member

@karlnapf karlnapf commented May 2, 2018

@lambday @lisitsyn here is add in action.

@karlnapf karlnapf requested a review from lisitsyn May 2, 2018 10:47
-add various default ctors
-make CombinedKernel's has_property lazy evaluated and recursive
-register parameters by base class
-add binary_labels conversion to MKLClassification
-update integration test data
@karlnapf karlnapf force-pushed the feature/port_mkl_examples branch from 62d642f to f7bde3e Compare May 2, 2018 10:48
GaussianKernel gauss_kernel_1(2.0)
GaussianKernel gauss_kernel_2(3.0)
Kernel poly_kernel = kernel("PolyKernel", degree=2)
Kernel gauss_kernel_1 = kernel("GaussianKernel", log_width=0.0)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

due to the changed gaussian kernel parameters, i needed to re-generate the integration testing data.

@@ -271,7 +271,7 @@ void CMKL::register_params()
rho = 0;
lp_initialized = false;

SG_ADD((CSGObject**) &svm, "svm", "wrapper svm", MS_NOT_AVAILABLE);
SG_ADD((CMachine**)&svm, "svm", "wrapper svm", MS_NOT_AVAILABLE);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is done as we want to register members by base type.
Here is an issue with this: users can now set any machine type to mkl.
This will lead to a runtime error, when the machine is used as an svm

@karlnapf karlnapf merged commit c461f9c into shogun-toolbox:develop May 3, 2018
@karlnapf karlnapf deleted the feature/port_mkl_examples branch May 3, 2018 09:50
ktiefe pushed a commit to ktiefe/shogun that referenced this pull request Jul 30, 2019
-add various default ctors
-make CombinedKernel's has_property lazy evaluated and recursive
-register parameters by base class
-add binary_labels conversion to MKLClassification
-update integration test data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant