Skip to content

Error with modshogun #192

@wdevazelhes

Description

@wdevazelhes

I think there is a problem when using shogun:
First after I installed shogun (the last version, I tried to install with conda forge and also pip), I cannot import modshogun (it throws a package not found error), but instead I can import shogun. Maybe I messed up somewhere in the install process or maybe the newest version have a different name or sth..

Even if I change the code with import shogun instead of import modshogun, there is another error when doing:

from metric_learn import LMNN
from sklearn.datasets import make_blobs
X, y = make_blobs(n_features=2)
X.shape
lmnn = LMNN()
lmnn.fit(X,y)

And it returns the following error:

NotImplementedError: Wrong number or type of arguments for overloaded function 'new_MulticlassLabels'.
  Possible C/C++ prototypes are:
    shogun::CMulticlassLabels::CMulticlassLabels()
    shogun::CMulticlassLabels::CMulticlassLabels(int32_t)
    shogun::CMulticlassLabels::CMulticlassLabels(shogun::SGVector< float64_t >)
    shogun::CMulticlassLabels::CMulticlassLabels(shogun::CFile *)
    shogun::CMulticlassLabels::CMulticlassLabels(shogun::CBinaryLabels *)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions