aai-institute / continuiti

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

Feature: Masked Operator #147

Closed JakobEliasWagner closed 2 months ago

JakobEliasWagner commented 3 months ago

Feature: Masked Operator

Description

Masked operators are able to apply masks during the forward pass to selectively use or ignore parts of the input. While the current Operator implementation usually allows to use various numbers of evaluation points, if fails to facilitate this behavior for differing numbers of sensors. While some operators are able to handle this behavior batched inputs are necessary to promote efficient and stable training. Therefore, masked inputs, allowing for padding sequences are required.

This PR introduces two new operator classes MaskedOperator. The MaskedOperator is able to process masked inputs by additionally accepting masks during the forward pass.

Which issue does this PR tackle?

How does it solve the problem?

How are the changes tested?

Notes

Checklist for Contributors

Checklist for Reviewers: