Datasets:
ArXiv:
License:
philipphager
commited on
Commit
•
cf38230
1
Parent(s):
f0d2faa
Update baidu-ultr_baidu-mlm-ctr.py
Browse files
baidu-ultr_baidu-mlm-ctr.py
CHANGED
@@ -142,7 +142,7 @@ class BaiduUltrBuilder(datasets.GeneratorBasedBuilder):
|
|
142 |
|
143 |
def _split_generators(self, dl_manager):
|
144 |
if self.config.name == Config.CLICKS:
|
145 |
-
train_files = self.download_clicks(dl_manager, parts=[1
|
146 |
test_files = self.download_clicks(dl_manager, parts=[0])
|
147 |
|
148 |
query_columns = [
|
@@ -255,6 +255,9 @@ class BaiduUltrBuilder(datasets.GeneratorBasedBuilder):
|
|
255 |
for i in range(len(df)):
|
256 |
row = df.iloc[i]
|
257 |
|
|
|
|
|
|
|
258 |
if current_query_id != row["query_id"]:
|
259 |
if current_query_id is not None:
|
260 |
yield sample_key, sample
|
|
|
142 |
|
143 |
def _split_generators(self, dl_manager):
|
144 |
if self.config.name == Config.CLICKS:
|
145 |
+
train_files = self.download_clicks(dl_manager, parts=[1])
|
146 |
test_files = self.download_clicks(dl_manager, parts=[0])
|
147 |
|
148 |
query_columns = [
|
|
|
255 |
for i in range(len(df)):
|
256 |
row = df.iloc[i]
|
257 |
|
258 |
+
if i > 50_000:
|
259 |
+
return
|
260 |
+
|
261 |
if current_query_id != row["query_id"]:
|
262 |
if current_query_id is not None:
|
263 |
yield sample_key, sample
|