You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MixedCut has grown into a more complex class than it seems since it can be composed of many underlying cuts that have either Cut or PaddingCut type. Recently I fixed some off-by-one num_frames errors between the meta-data and the actual feature matrices due to rounding. While things seem to be working okay now, I'd like to be sure we are free of this sort of errors, but the space of possible cut combinations is too large to cover with standard unit test cases.
Goal:
Test that MixedCut created in various ways always has consistent num_samples and num_frames metadata with the actual data shapes when samples/features are loaded into memory.
We should create the MixedCut by initializing fake Recordings + Cuts with random sampling rates and durations, extracting features for them, and then performing a number of randomly selected operations: pad, mix, and append. We can use a randomized testing library like hypothesis if it is useful.
The text was updated successfully, but these errors were encountered:
Motivation:
MixedCut
has grown into a more complex class than it seems since it can be composed of many underlying cuts that have eitherCut
orPaddingCut
type. Recently I fixed some off-by-onenum_frames
errors between the meta-data and the actual feature matrices due to rounding. While things seem to be working okay now, I'd like to be sure we are free of this sort of errors, but the space of possible cut combinations is too large to cover with standard unit test cases.Goal:
Test that
MixedCut
created in various ways always has consistentnum_samples
andnum_frames
metadata with the actual data shapes when samples/features are loaded into memory.We should create the
MixedCut
by initializing fake Recordings + Cuts with random sampling rates and durations, extracting features for them, and then performing a number of randomly selected operations:pad
,mix
, andappend
. We can use a randomized testing library like hypothesis if it is useful.The text was updated successfully, but these errors were encountered: