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

Py kernels #28

Merged
merged 21 commits into from
Sep 5, 2016
Merged

Py kernels #28

merged 21 commits into from
Sep 5, 2016

Conversation

positiveblue
Copy link
Collaborator

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.

Jomsdev added 8 commits August 24, 2016 15:28
- __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.
Jomsdev added 10 commits August 26, 2016 09:48
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.
@positiveblue positiveblue merged commit 71f9a78 into capi Sep 5, 2016
@positiveblue positiveblue deleted the pyKernels branch November 21, 2016 19:46
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.

2 participants