Skip to content

Introduce "Learner not ready" error #88

@basnijholt

Description

@basnijholt

(original issue on GitLab)

opened by Anton Akhmerov (@anton-akhmerov) at 2018-03-10T20:58:36.245Z

Some adaptive algorithms may be implemented such that they are not ready to request new data until more data arrives. While this reduces the suitability of these algorithms to parallelization, there is no reason to prohibit it.

We could handle this as follows:

  • Introduce an InsufficientData error (name is tentative) that could be a subclass of StopIteration if we view learners as iterators (see gitlab:#45).
  • Teach the runners and BalancingLearner to catch this error and only resume querying the learner after they supply additional data.

That way we could even write a trivial wrapper learner that works with any adaptive algorithm and blocks on every step.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions