Update renovation.py
Browse files- renovation.py +3 -3
renovation.py
CHANGED
@@ -60,19 +60,19 @@ class RenovationQualityDataset(datasets.GeneratorBasedBuilder):
|
|
60 |
datasets.SplitGenerator(
|
61 |
name=datasets.Split.TRAIN,
|
62 |
gen_kwargs={
|
63 |
-
"rows": rows[:int(0.
|
64 |
},
|
65 |
),
|
66 |
datasets.SplitGenerator(
|
67 |
name=datasets.Split.VALIDATION,
|
68 |
gen_kwargs={
|
69 |
-
"rows": rows[int(0.
|
70 |
},
|
71 |
),
|
72 |
datasets.SplitGenerator(
|
73 |
name=datasets.Split.TEST,
|
74 |
gen_kwargs={
|
75 |
-
"rows": rows[int(0.
|
76 |
},
|
77 |
),
|
78 |
]
|
|
|
60 |
datasets.SplitGenerator(
|
61 |
name=datasets.Split.TRAIN,
|
62 |
gen_kwargs={
|
63 |
+
"rows": rows[:int(0.9 * len(rows))],
|
64 |
},
|
65 |
),
|
66 |
datasets.SplitGenerator(
|
67 |
name=datasets.Split.VALIDATION,
|
68 |
gen_kwargs={
|
69 |
+
"rows": rows[int(0.9 * len(rows)):],
|
70 |
},
|
71 |
),
|
72 |
datasets.SplitGenerator(
|
73 |
name=datasets.Split.TEST,
|
74 |
gen_kwargs={
|
75 |
+
"rows": rows[int(0.9 * len(rows)):],
|
76 |
},
|
77 |
),
|
78 |
]
|