federerjiang
commited on
Commit
Β·
4c9b111
1
Parent(s):
39b3ee7
create split folders
Browse files- data_loader.py +0 -10
- chunk_0.parquet β train/chunk_0.parquet +0 -0
- chunk_1.parquet β train/chunk_1.parquet +0 -0
- chunk_2.parquet β train/chunk_2.parquet +0 -0
- chunk_3.parquet β train/chunk_3.parquet +0 -0
- chunk_4.parquet β train/chunk_4.parquet +0 -0
- chunk_5.parquet β validation/chunk_5.parquet +0 -0
data_loader.py
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
from datasets import load_dataset, DatasetDict
|
2 |
-
|
3 |
-
# Define paths to data files
|
4 |
-
data_files = {
|
5 |
-
"train": ["chunk_0.parquet", "chunk_1.parquet", "chunk_2.parquet"],
|
6 |
-
"validation": ["chunk_3.parquet", "chunk_4.parquet", "chunk_5.parquet"],
|
7 |
-
}
|
8 |
-
|
9 |
-
# Load dataset with splits
|
10 |
-
dataset = load_dataset('parquet', data_files=data_files)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
chunk_0.parquet β train/chunk_0.parquet
RENAMED
File without changes
|
chunk_1.parquet β train/chunk_1.parquet
RENAMED
File without changes
|
chunk_2.parquet β train/chunk_2.parquet
RENAMED
File without changes
|
chunk_3.parquet β train/chunk_3.parquet
RENAMED
File without changes
|
chunk_4.parquet β train/chunk_4.parquet
RENAMED
File without changes
|
chunk_5.parquet β validation/chunk_5.parquet
RENAMED
File without changes
|