Bug in func. shuffle in docqa/dataset.py
Abierto
- Lenguaje dominante
- Python
- Estrellas
- 435
- Forks
- 118
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Hi, Clark
Thanks for your opening source code!
I found a bug in shuffle function:
```
def shuffle_list_buckets(data, key, rng):
start = 0
end = 0
while start < len(data):
while end < len(data) and key(data[start]) == key(data[end]):
end += 1
rng.shuffle(data[start:end])
start = end
return data
```
rng.shuffle(data[start:end]) doesn't shuffle the the slice of data
Deming Ye
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.