modAL-python / modAL

A modular active learning framework for Python
https://modAL-python.github.io/
MIT License
2.24k stars 324 forks source link

BayesianOptimizer gives negative accuracy #120

Open erenarkangil opened 3 years ago

erenarkangil commented 3 years ago

Hi,

I implemented the sample code here :

https://modal-python.readthedocs.io/en/latest/content/apireference/models.html

However, when i switched X(training data in the sample code) to X = np.linspace(0, 22, 1000).reshape(-1, 1)

optimizer.score(X, y) gives me ''-2.267766614571299''

Kind Regards, Eren.

cosmic-cortex commented 3 years ago

Hi!

The .score method is just an interface for the .score method of the classifier, so I am not sure what is the problem. Which estimator do you use?