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
The current implementation of NESMusicDatabase does not handle the training-validation-test splits provided in the original dataset. To avoid changing the base Dataset class too much, we could add a subset method and achieve something like the following.
nes=muspy.NESMusicDatabase("data/nes/")
training_set=nes.subset("training") # also a Dataset objectvalidation_set=nes.subset("validation")
test_set=nes.subset("test")
The text was updated successfully, but these errors were encountered:
>>>test_data=Groove2GrooveDataset('/tmp/groove2groove-data', part='test', download_and_extract=True) # OK>>>test_data.convert() # OK>>>val_data=Groove2GrooveDataset('/tmp/groove2groove-data', part='val') # OK, reuses downloaded data>>>val_data.convert() # not OK, skips conversion as '_converted' already contains the test data
I see your point. We could have a Subset class for this, which does not have a convert method but can be iterated over just like a regular dataset. The key is that the subset always share the data with its parent dataset and the only difference is in the filenames to look for.
The current implementation of
NESMusicDatabase
does not handle the training-validation-test splits provided in the original dataset. To avoid changing the baseDataset
class too much, we could add asubset
method and achieve something like the following.The text was updated successfully, but these errors were encountered: