Commit e311c75
OpenClaw Assistant
Fix #791: HuggingFaceDataset doesn't shuffle the dataset
- datasets.Dataset.shuffle() returns a new Dataset object
- Need to assign the result: self._dataset = self._dataset.shuffle()
- Fixed in both __init__ and shuffle() methods
- Maintains backward compatibility
Fixes #7911 parent c48e0da commit e311c75
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
194 | 194 | | |
0 commit comments