ntucllab / libact

Pool-based active learning in Python
http://libact.readthedocs.org/
BSD 2-Clause "Simplified" License
777 stars 175 forks source link

libact.query_strategies._variance_reduction is missing #144

Open gtcslance opened 6 years ago

gtcslance commented 6 years ago

this line of code does not work

from libact.query_strategies._variance_reduction import estVar

because the _variance_reduction module is missing

yangarbiter commented 6 years ago

Did you install the package correctly through ./setup.py install?

It seems you didn't compile the source code for variance reduction.

rislam commented 5 years ago

I have followed the same and the last line

Finished processing dependencies for libact==0.1.3

Then I tried to run, python examples/plot.py

Traceback (most recent call last): File "examples/plot.py", line 23, in from libact.query_strategies import * File "/libact-master/libact/query_strategies/init.py", line 20, in from ._variance_reduction import estVar ImportError: dlopen(/libact-master/libact/query_strategies/_variance_reduction.cpython-37m-darwin.so, 2): Symbol not found: ___addtf3 Referenced from: /usr/local/opt/gcc/lib/gcc/8/libquadmath.0.dylib Expected in: /usr/lib/libSystem.B.dylib in /usr/local/opt/gcc/lib/gcc/8/libquadmath.0.dylib

yangarbiter commented 5 years ago

https://github.com/scipy/scipy/issues/5093

Could you try to reinstall the package?

rislam commented 5 years ago

Yes, I have tried them too.

yangarbiter commented 5 years ago

I mean remove libact completely and reinstall it.

rislam commented 5 years ago

Tried that one and this one https://github.com/ntucllab/libact/issues/138 too. But out of luck.