patch.pad and patch.pad_to #351
Closed
d-chambers
started this conversation in
Ideas
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I am thinking about implementing
patch.padandpatch.pad_to.The former will pretty much follow
numpy.pad, with the exception that kwargs can be used to specify dimensions.pad_towould work something like this:Pad to a certain time/distance
Pad to a certain duration
This may need a
from_endoption to know if the padding should be at the start or end.Pad to a certain array shape (in samples)
This will be useful for many machine learning models which require input data of a certain shape.
It could also use the
from_endflag.Any thoughts or comments on the API?
All reactions