patch.pad and patch.pad_to #351
Closed
d-chambers
started this conversation in
Ideas
Replies: 1 comment
-
I think think #373 takes care of this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am thinking about implementing
patch.pad
andpatch.pad_to
.The former will pretty much follow
numpy.pad
, with the exception that kwargs can be used to specify dimensions.pad_to
would work something like this:Pad to a certain time/distance
Pad to a certain duration
This may need a
from_end
option 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_end
flag.Any thoughts or comments on the API?
Beta Was this translation helpful? Give feedback.
All reactions