Comments (10)
I am afraid if the script won't run when not in the same folder with modAL, the problem is not solved yet :( Unfortunately, I was unable to reproduce this error on a freshly installed machine, so I still don't know what might went wrong.
In your script, which one did you try?
import modALor
from modAL.models import ActiveLearner
Hey I think it may be "pip install modAL-python"
from modal.
I had the same/similar issue and fixed it by renaming the install folder from
modAL
tomodal
, maybe everyone stick to lowercase for package names in future?
There was a change in PyPI, modAL
has been moved under the name modAL-python
. The package modal
is a different one! (See #170.)
from modal.
Wow, so the docs is wrong? it is not pip install modAL but "pip install modAL-python".
The latter resolved the issue for me.
from modal.
What did you import specifically? Can you post the exact log with the import and the error message as well? Also, can you execute the
from modAL.models import ActiveLearner
command in a Python console?
I suspect this is a problem with the setup script. I have encountered this issue a long ago, but this was solved since then and I was unable to reproduce it, so I have no idea what went wrong.
Did you install the latest version, which is 0.3.4? (You can check it with pip freeze | grep modAL
.)
from modal.
Thanks for your reply! The modAL version is the latest version. I eventually solved it by placing the modAL folder in the same path as the python script that imports modAL. I think it this case the path matters.
from modal.
I am afraid if the script won't run when not in the same folder with modAL, the problem is not solved yet :(
Unfortunately, I was unable to reproduce this error on a freshly installed machine, so I still don't know what might went wrong.
In your script, which one did you try?
import modAL
or
from modAL.models import ActiveLearner
from modal.
Both, and they gave me the same error message.
I used a virtualenv, and after running pip install modAL in my virtualenv, I could find modAL was installed and located in site-packages
my working directory is
(activelr) notebooklinda@notebooklinda:/Documents/02-750_automation_of_biological_research/TA$/Documents/02-750_automation_of_biological_research/TA$ locate -b modAL
modAL is located at
(activelr) notebooklinda@notebooklinda:
/home/notebooklinda/Documents/02-750_automation_of_biological_research/TA/activelr/lib/python3.5/site-packages/modAL
/home/notebooklinda/Documents/02-750_automation_of_biological_research/TA/activelr/lib/python3.5/site-packages/modAL-0.3.4.dist-info
After I copy the entire modAL directory to my working directory, I am able to import modAL.
from modal.
I had the same issue when using Spyder and closing the Console / Restaring the Kernel. Restaring Spyder seems to fix this issue.
An easy check is to start the command tool in your virtual environment and check if you are able to import modAL there.
from modal.
I had the same/similar issue and fixed it by renaming the install folder from modAL
to modal
, maybe everyone stick to lowercase for package names in future?
from modal.
I had the same/similar issue and fixed it by renaming the install folder from
modAL
tomodal
, maybe everyone stick to lowercase for package names in future?There was a change in PyPI,
modAL
has been moved under the namemodAL-python
. The packagemodal
is a different one! (See #170.)
I had the same problem,but I can't find the 'modAL.model',but i can find "modal",not 'modAL',it seems like that they are not the same package?
from modal.
Related Issues (20)
- Multivariate Active regression
- How to extract the image names and labels in the training set after completing the active learning loop and write them to a CSV file
- decision_function instead of predict_proba HOT 5
- AttributeError: bootstrap_init HOT 3
- TypeError: cannot concatenate object of type '<class 'numpy.ndarray'>'; only Series and DataFrame objs are valid
- Can I use modAL with estimators from other libraries than scikit-learn like xgboost? HOT 1
- Which sampling method is best for very unbalanced data? HOT 1
- Encountering error with number of batches per epoch
- mmdetection integration with modAL
- Adding active learning regression implementations based on greedy sampling HOT 2
- modAL not installable via pypi anymore HOT 3
- the modAL package has been changed into modal in the pip repository HOT 7
- Data augmentation with `skorch`
- QBC approach for multi-class classification
- Suggestion on how to improve acquisition.UCB for active GP example HOT 1
- QBC stratified bootstrapping HOT 1
- Use modAL on BERT models HOT 1
- Spacy NER HOT 1
- raise ImportError( ImportError: C extension: None not built. If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext' to build the C extensions first.
- uncertainty query for 2d classifier output
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 modal.