This repository has been archived by the owner on Dec 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
No module polylearn.loss_fast #9
Comments
Did you run |
Actually I realized we're bundling the .cpp files so I don't think Cython is an install dependency. I updated the readme accordingly. |
@msh-tf are you still having issues? |
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. |
I think the problem is you're trying to import polylearn from the source directory. This does not work. Try:
`mkdir newdir; cd newdir; python -c "import polylearn"`
In practice your scripts using polylearn should be in their own packages elsewhere on disk anyway. Let me know if this works.
|
Thank you @vene ; that resolves my issue! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
`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'`
The text was updated successfully, but these errors were encountered: