Abinaya Mahendiran
commited on
Commit
•
9352866
1
Parent(s):
18eda8f
Updated train/test split
Browse files- data_preparation.py +2 -1
- test.json +2 -2
- train.json +2 -2
data_preparation.py
CHANGED
@@ -78,7 +78,8 @@ def split_data(file_name: str, data_type: str) -> (dict, dict):
|
|
78 |
json_file.close()
|
79 |
|
80 |
# split the data into train and test
|
81 |
-
|
|
|
82 |
return(train, test)
|
83 |
|
84 |
# Function to save json file
|
|
|
78 |
json_file.close()
|
79 |
|
80 |
# split the data into train and test
|
81 |
+
# 90% train data 10% test data
|
82 |
+
train, test = train_test_split(data, train_size=0.9, random_state = 42)
|
83 |
return(train, test)
|
84 |
|
85 |
# Function to save json file
|
test.json
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0491481fa9f87b853325955a723f4f016a1b2c7c36102e0f1a6d719cef2f2fe7
|
3 |
+
size 15489062
|
train.json
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3bdf14d2447662444e33ff98308d414e2f7cdad4a0d5bd1eafa2964dbcd45f53
|
3 |
+
size 129237655
|