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

dataset

parent c1f5ccfd
No related branches found
No related tags found
No related merge requests found
......@@ -77,8 +77,7 @@ 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