-
Notifications
You must be signed in to change notification settings - Fork 20
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
Py kernels #28
Merged
Merged
Py kernels #28
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- __gram(): generic binding for C++ to calculate gram() given any kernel. - kernel(): function that returns a kernel instance of a kernel defined by a string parameter. - __get_direction(): transform 0/1 and rows/columns to 1/2.
- __get_directions: now documentated. - All the "private functions" appear now first.
- kernel(s): Returns a Kernel based on the inputs parameters. - Kernel(): Class with the basic functions for any kernel. - Gaussian: Inherit from Kernel and implements a Gaussian kernel.
- Only works with numpy arrays.
- Matern(): Only works with numpy matrices. Doesn't call any C++ code.
- ExpSemigroup: Only works with numpy, doesn't use C++ code.
linear_t(): Extends from kernel_t and implements gram and symmetric gram functions. ckernel.cpp: Linear kenrel exposed.
The expsemigroup kernel has implemented the gram fucntions but not the symmetric_gram yet.
…rix. It workis with El::Matrix and EL::DistMatrix. Not optimized for symmetric matrices yet.
- Utils.py: Contains useful functions for testing.
This was referenced Sep 1, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
All the kernels are added and working. However, three of them are not using the C++ implementation (Linear, Matern and ExpSemigroup) because of #13 .
My next task is to implement these methods in C++ and then code the bindings but we can use now all the kernels in python.