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

Fail to run the example of Multiple Kernel Learning #4341

Closed
daifeng2016 opened this issue Jun 20, 2018 · 11 comments
Closed

Fail to run the example of Multiple Kernel Learning #4341

daifeng2016 opened this issue Jun 20, 2018 · 11 comments

Comments

@daifeng2016
Copy link

I have installed the shogun library using python command "conda install -c conda-forge shogun", and some examples can work well. However, when I test the example of "Multiple Kernel Learning", some errors arise, such as:

  1. NameError: name 'SVRLight' is not defined
  2. SystemError: [ERROR] In file C:\bld\shogun-cpp_1512689666832\work\shogun-shogun_6.1.3\src\shogun\classifier\mkl\MKL.cpp line 438: Interleaved MKL optimization is currently only supported with SVMlight
    Moreover, I could not use some classes, like GMM. I am wondering if some function fails to work in the python version.
    Have anyone met such probelms? How to solve the above problems?
@daifeng2016 daifeng2016 changed the title Fail to run the example of Fail to run the example of Multiple Kernel Learning Jun 20, 2018
@karlnapf
Copy link
Member

Hi!
This is due to the licensing of SVMLight (we cannot change that). You will have to compile shogun yourself if you want to use svmlight.

What is the error for GMM? There is a LAPACK dependency there. @dougalsutherland is lapack enabled in the conda build?

@daifeng2016
Copy link
Author

Thank you for your explanation @karlnapf , the error for GMM is "name 'GMM' is not defined ".

@karlnapf
Copy link
Member

karlnapf commented Jun 20, 2018

This is due to a LAPACK dependency. We got rid of this in the latest development version, and this will be in conda with the next release (i.e. you can use GMM without having LAPACK installed)

Though still it seems weird that lapack is not active in conda, will check that

@vigsterkr
Copy link
Member

@daifeng2016 are you using this on windows by any chance?

@daifeng2016
Copy link
Author

@vigsterkr Yes, I am using shogun with python version on windows 10 system, and many problems happend.

@vigsterkr
Copy link
Member

@daifeng2016 yeah unfortunately the windows version has no lapack backend... :( as said by @karlnapf this particular error is fixed in develop, but has not been released yet

@daifeng2016
Copy link
Author

@vigsterkr Thank you, wishing to see the latest version.

@djsutherland
Copy link
Contributor

Sorry I didn't see this last week (my github notifications are an endless swamp). Yes, there's no lapack backend on the Windows build yet (conda-forge/shogun-cpp-feedstock#13).

@luoagnes
Copy link

I compile shogun by hand in ubuntu:14.04 according to INSTALL.md. in python command line environment, "import shogun" is right, but "from shogun import SVMLight" error and name 'CombinedKernel' is not defined, Why? And how to solve it ?

@vinx13
Copy link
Member

vinx13 commented Feb 28, 2019

hi @luoagnes , we are moving to factory methods, you can use kernel('CombinedKernel') and machine('SVMLight') to create them

@karlnapf
Copy link
Member

karlnapf commented Mar 1, 2019

(also need to compile shogun using the GPL compatible submodules if you want to use SVMLIGHT

@karlnapf karlnapf closed this as completed Mar 1, 2019
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

6 participants