aai-institute / continuiti

Learning function operators with neural networks.
GNU Lesser General Public License v3.0
19 stars 3 forks source link

Feature: Sampler #58

Closed JakobEliasWagner closed 6 months ago

JakobEliasWagner commented 6 months ago

Feature: Sampler

Description

This pull request introduces base classes for sampling and an example (namely a uniform box-sampler). Samplers should cater to both continuous and discrete domains. By incorporating abstract base classes Sampler and BoxSampler, alongside a concrete implementation UniformBoxSampler, this pr introduces the groundwork for a flexible and extensible sampling module. Sampling for operator learning is not only relevant for creating discrete representations of functions but could also be used to extend the capabilities of operators (resampling inside the operator). Therefore should this feature not be tied to the data module.

Which issue does this PR tackle?

How does it solve the problem?

How are the changes tested?

Checklist for Contributors

Checklist for Reviewers:

JakobEliasWagner commented 6 months ago

Freeze this branch for now, until features have been added onto other branches.

samuelburbulla commented 6 months ago

We could also add a CHANGELOG entry.