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

Having problems with using MKLpy #24

Open
KARTHEEKCIC opened this issue Apr 7, 2022 · 0 comments
Open

Having problems with using MKLpy #24

KARTHEEKCIC opened this issue Apr 7, 2022 · 0 comments

Comments

@KARTHEEKCIC
Copy link

Hi,

I am working on a project related to multiple kernel learning and I wanted to use the MKLpy library. I am currently trying to run the small example given in the MKLpy paper on a dataset with 750 instances. In my program, I am creating a list of kernels using my custom kernel function. So, the shape of my training set is (11, 384, 600) where 11 is the number of kernels and (384, 600) is the size of each kernel (the kernel is obtained by the random fourier features). I am using this list of kernels to train an EasyMKL model from the library. Running this program gives me the error MKLpy.utils.exceptions.SquaredKernelError: K is not squared: torch.Size([384, 600]).
Can anyone help me out with this? I am not able to understand why it should be a squared matrix if the library allows any custom kernel.

Here is the code example for reference -
Screen Shot 2022-04-07 at 16 56 13

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

No branches or pull requests

1 participant