Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

No module polylearn.loss_fast #9

Open
msh-tf opened this issue Jan 30, 2017 · 6 comments
Open

No module polylearn.loss_fast #9

msh-tf opened this issue Jan 30, 2017 · 6 comments

Comments

@msh-tf
Copy link

msh-tf commented Jan 30, 2017

`In [1]: import polylearn

ImportError Traceback (most recent call last)
in ()
----> 1 import polylearn

/Users/manas/projects/polylearn/polylearn/init.py in ()
----> 1 from .factorization_machine import FactorizationMachineRegressor
2 from .factorization_machine import FactorizationMachineClassifier
3 from .polynomial_network import PolynomialNetworkRegressor
4 from .polynomial_network import PolynomialNetworkClassifier

/Users/manas/projects/polylearn/polylearn/factorization_machine.py in ()
22 from lightning.impl.dataset_fast import get_dataset
23
---> 24 from .base import _BasePoly, _PolyClassifierMixin, _PolyRegressorMixin
25 from .kernels import _poly_predict
26 from .cd_direct_fast import _cd_direct_ho

/Users/manas/projects/polylearn/polylearn/base.py in ()
10 from sklearn.externals import six
11
---> 12 from .loss import CLASSIFICATION_LOSSES, REGRESSION_LOSSES
13
14

/Users/manas/projects/polylearn/polylearn/loss.py in ()
2 # License: Simplified BSD
3
----> 4 from .loss_fast import Squared, SquaredHinge, Logistic
5
6

ImportError: No module named 'polylearn.loss_fast'`

@mblondel
Copy link
Member

mblondel commented Feb 2, 2017

Did you run python setup.py build at the project root? Do you have Cython installed?

@vene
Copy link
Collaborator

vene commented Feb 26, 2017

Actually I realized we're bundling the .cpp files so I don't think Cython is an install dependency. I updated the readme accordingly.

@vene
Copy link
Collaborator

vene commented Apr 24, 2017

@msh-tf are you still having issues?

@xenocyon
Copy link

Hi @vene, I'm seeing the same issue. I'm attaching the stdout/stderr in a text file so you can see specifics of my install, in case that helps you debug.

stdout_stderr.txt

@vene
Copy link
Collaborator

vene commented Apr 27, 2017 via email

@xenocyon
Copy link

Thank you @vene ; that resolves my issue!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants