modAL 0.3.0
Pre-release
Pre-release
Release notes
New features
- Bayesian optimization. Bayesian optimization is a method for optimizing black box functions for which evaluation may be expensive and derivatives may not be available. It uses a query loop very similar to active learning, which makes it possible to implement it using an API identical to the
ActiveLearner
. Sampling for values are made by strategies estimating the possible gains for each point. Among these, three strategies are implemented currently: probability of improvement, expected improvement and upper confidence bounds.
Changes
modAL.models.BaseLearner
abstract base class implemented.ActiveLearner
andBayesianOptimizer
both inherit from it.modAL.models.ActiveLearner.query()
now passes theActiveLearner
object to the query function instead of just the estimator.
Fixes
modAL.utils.selection.multi_argmax()
now works for arrays with shape(-1, )
as well as(-1, 1)
.