python-adaptive / adaptive

:chart_with_upwards_trend: Adaptive: parallel active learning of mathematical functions

Home Page:http://adaptive.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make Runner work with unhashable points

basnijholt opened this issue · comments

Currently Runners do not support the points to be unhashable. This leads to #265.

Allowing the Runner to work with any points would simplify the SequenceLearner and means we wouldn't have to convert numpy arrays to tuples in all other learners.

means we wouldn't have to convert numpy arrays to tuples in all other learners.

Not necessarily—the other learners might still rely on dictionaries for the internal data structure.

Still the runner doesn't really need to store a lot of state, and making its interface more general is an improvement.