Comments (12)
I made an issue upstream - conda-forge/glmnet-feedstock#3.
Looking at the conda package, I cannot divine why...
from python-glmnet.
I don't know about these issues, but a conda package for this would probably be a good idea.
Ignoring compiler warnings is not great practice, but also not crazy. Does the code actually compile? Does it ever throw an error, or do you just get warnings?
from python-glmnet.
Indeed, I forgot to mention that the package does not compile. I updated my initial comment.
from python-glmnet.
I will try installing with conda-forge:
https://github.com/conda-forge/glmnet-feedstock
from python-glmnet.
Ahhh cool. I did not know that existed!
from python-glmnet.
I did not either until today.
It installs in the correct conda environment...
$ conda list | grep glm
glmnet 2.0.0 np113_0 conda-forge
...but I cannot import the glmnet module.
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-35-52c1c0e49750> in <module>()
----> 1 import glmnet as gln
ModuleNotFoundError: No module named 'glmnet'
from python-glmnet.
I am getting this too. It looks like it is installing the libs to the python 2.7 site packages directory instead of 3.6 for me.
$ ls miniconda3/envs/civis/lib/python2.7/site-packages/
_glmnet.so glmnet/ glmnet-2.0.0.dist-info/
from python-glmnet.
Yep...same here. (ends up in python 2.7 site-packages )
Good catch!
from python-glmnet.
Cool. I put in a fix to the conda package. Hopefully it gets merged soon.
from python-glmnet.
The new conda forge package has merged. I am closing this. If you still have trouble, please feel free to open an issue here or on the conda forge feedstock!
from python-glmnet.
I still have an issue importing glmnet. Conda is installing correctly into python 3.8 packages, but I can't understand why it isn't able to import... there is a glymnet.py file inside of the glmnet_python folder which was installed.
import glmnet_python File "/usr/local/Caskroom/miniconda/base/lib/python3.8/site-packages/glmnet_python/__init__.py", line 12, in <module> from .cvglmnet import cvglmnet File "/usr/local/Caskroom/miniconda/base/lib/python3.8/site-packages/glmnet_python/cvglmnet.py", line 203, in <module> from glmnet import glmnet ImportError: cannot import name 'glmnet' from 'glmnet' (/usr/local/Caskroom/miniconda/base/lib/python3.8/site-packages/glmnet/__init__.py)
from python-glmnet.
@edoroth were you able to get a solution to this
from python-glmnet.
Related Issues (20)
- Failed to find libgfortran.3.dylib HOT 4
- Extraneous __init__.py in root directory
- ValueError: _glmnet.lognet() 3rd keyword (isd) can't be converted to int
- Create new release for PIP past 2.0 HOT 2
- ElasticNet.predict returns 0d array on 1-row inputs
- attribute n_lambda_ may be less than specified n_lambda, but the selected coefficients vary a lot HOT 10
- Where to put 'lambda.1se' HOT 3
- Use external joblib and six packages, instead of sklearn.externals versions HOT 2
- lol
- Mac wheel library linking issue HOT 7
- BUG: ModuleNotFoundError: No module named '_glmnet' HOT 5
- Error with sklearn's make_scorer
- Error importing glmnetcv
- installing issue on Windows 10
- ElasticNet.fit raises ValueError when not converging instead of just issuing a warning HOT 1
- What can be the reason for different results compared to R glmnet?
- Python 3.9 Compatibility HOT 9
- LogitNet doesn't implement the `_estimator_type` attribute
- Package does not build with `--use-pep517` (with Poetry)
- Inaccurate porting of covariance vs naive method
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-glmnet.