Datasets:
Remove shuffle
Browse files- the_pile_github.py +2 -2
the_pile_github.py
CHANGED
|
@@ -19,6 +19,7 @@ import re
|
|
| 19 |
import pandas as pd
|
| 20 |
import datasets
|
| 21 |
import json
|
|
|
|
| 22 |
|
| 23 |
|
| 24 |
_CITATION = """\
|
|
@@ -183,8 +184,7 @@ class SmartContracts(datasets.GeneratorBasedBuilder):
|
|
| 183 |
key = 0
|
| 184 |
for path in files:
|
| 185 |
df = pd.read_parquet(path)
|
| 186 |
-
|
| 187 |
-
|
| 188 |
for row in df.itertuples():
|
| 189 |
|
| 190 |
if split_key == "train":
|
|
|
|
| 19 |
import pandas as pd
|
| 20 |
import datasets
|
| 21 |
import json
|
| 22 |
+
from sklearn.utils import shuffle
|
| 23 |
|
| 24 |
|
| 25 |
_CITATION = """\
|
|
|
|
| 184 |
key = 0
|
| 185 |
for path in files:
|
| 186 |
df = pd.read_parquet(path)
|
| 187 |
+
|
|
|
|
| 188 |
for row in df.itertuples():
|
| 189 |
|
| 190 |
if split_key == "train":
|