Closed themooneer closed 6 years ago
QueryStrategy is a abstract class. You should do something like:
from libact.query_strategies import UncertaintySampling
UncertaintySampling(dataset).make_query()
I did it like you mentioned, but it misses a model !! :(
line 32, in
Sorry about that. Try this one.
from libact.models import LogisticRegression
from libact.query_strategies import UncertaintySampling
UncertaintySampling(dataset, model=LogisticRegression()).make_query()
Is there any example of Dataset Instanciation please ? I think that the documentation is not so clear
You can reference the examples here. https://github.com/ntucllab/libact/blob/master/examples/plot.py
I'm testing your example code to explore this library and there is an error while instantiating the query strategy
Error
Traceback (most recent call last): File "path_to_my_script/script.py", line 30, in
QueryStrategy(dataset).make_query() # declare a QueryStrategy instance
TypeError: Can't instantiate abstract class QueryStrategy with abstract methods make_query
Am using Python 2.7.13 on Debian Os
Thanks in advance!