Skip to content
Snippets Groups Projects
Commit bbc0dcf2 authored by Léo Schneider's avatar Léo Schneider Committed by Schneider Leo
Browse files

dataset

parent 254bc38e
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,8 @@ class RT_Dataset(Dataset):
self.data = self.data[self.data.state == 'holdout']
elif mode == 'validation':
self.data = self.data[self.data.state == 'validation']
if size is not None:
self.data = self.data.sample(size)
print('Padding')
self.data['sequence'] = self.data['sequence'].str.pad(length, side='right', fillchar='_')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment