-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.yml
More file actions
423 lines (403 loc) · 8.43 KB
/
Copy pathconfig.yml
File metadata and controls
423 lines (403 loc) · 8.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
# Autogenerated config file for Metarank, source=/home/shutty/work/metarank/esci/ltr/events.jsonl.zst
#
# This config file may need to be edited manually:
# - persistence config is not defined. Metarank will run in an in-memory mode by default.
# - generated feature definitions for categories may include too many/few items.
# - model training hyperparameters may not be perfect for your dataset, so you may need to tune them.
#
state:
type: file
backend: mapdb
path: /conf/state/
format: binary
train:
type: file
path: /conf/state/
format: binary
features:
- type: field_match
name: query_title_minilm
itemField: item.title
rankingField: ranking.query
method:
type: bi-encoder
model: metarank/all-MiniLM-L6-v2
dim: 384
- type: field_match
name: query_title_minilm_ft
itemField: item.title
rankingField: ranking.query
method:
type: bi-encoder
model: metarank/esci-MiniLM-L6-v2
dim: 384
- type: field_match
name: query_title_ce_ft
itemField: item.title
rankingField: ranking.query
method:
type: cross-encoder
model: metarank/ce-esci-MiniLM-L12-v2
- type: field_match
name: query_title_ce
itemField: item.title
rankingField: ranking.query
method:
type: cross-encoder
model: metarank/ce-msmarco-MiniLM-L6-v2
- type: field_match
name: query_title_bm25
itemField: item.title
rankingField: ranking.query
method:
type: bm25
language: english
termFreq: /conf/tf-title.json.gz
- type: field_match
name: query_desc_bm25
itemField: item.desc
rankingField: ranking.query
method:
type: bm25
language: english
termFreq: /conf/tf-desc.json.gz
- type: field_match
name: query_bullets_bm25
itemField: item.bullets
rankingField: ranking.query
method:
type: bm25
language: english
termFreq: /conf/tf-bullets.json.gz
- type: string
name: category0
field: item.category0
scope: item
encode: index
values:
- Arts, Crafts & Sewing
- Automotive
- Beauty & Personal Care
- Books
- Clothing, Shoes & Jewelry
- Electronics
- Grocery & Gourmet Food
- Health & Household
- Home & Kitchen
- Office Products
- Patio, Lawn & Garden
- Sports & Outdoors
- Tools & Home Improvement
- Toys & Games
- type: string
name: category1
field: item.category1
scope: item
encode: index
values:
- Accessories
- Arts & Crafts
- Baby
- Bath
- Beading & Jewelry Making
- Bedding
- Beverages
- Boys
- Building Supplies
- Camera & Photo
- Cases, Holsters & Sleeves
- Cats
- Children's Books
- Computers & Accessories
- Costumes & Accessories
- Crafting
- Diet & Sports Nutrition
- Dogs
- Electrical
- Event & Party Supplies
- Exercise & Fitness
- Exterior Accessories
- Fan Shop
- Feeding
- Foot, Hand & Nail Care
- Furniture
- Games & Accessories
- Gardening & Lawn Care
- Girls
- Hair Care
- Hardware
- Headphones, Earbuds & Accessories
- Health Care
- Heating, Cooling & Air Quality
- Home Décor Products
- Household Supplies
- Hunting & Fishing
- Interior Accessories
- Kindle eBooks
- Kitchen & Bath Fixtures
- Kitchen & Dining
- Lighting & Ceiling Fans
- Literature & Fiction
- Luggage & Travel Gear
- Makeup
- Medical Supplies & Equipment
- Men
- Motorcycle & Powersports
- Novelty & More
- Nursery
- Office & School Supplies
- Office Electronics
- Outdoor Décor
- Outdoor Recreation
- Paint, Wall Treatments & Supplies
- Painting, Drawing & Art Supplies
- Pantry Staples
- Party Supplies
- Patio Furniture & Accessories
- Power & Hand Tools
- Replacement Parts
- Safety & Security
- Sewing
- Skin Care
- Snacks & Sweets
- Sport Specific Clothing
- Sports
- Sports & Outdoor Play
- Sports & Outdoor Recreation Accessories
- Storage & Organization
- Stuffed Animals & Plush Toys
- Television & Video
- Tools & Accessories
- Toy Figures & Playsets
- Vitamins, Minerals & Supplements
- Wall Art
- Women
- type: string
name: category2
field: item.category2
scope: item
encode: index
values:
- Accessories
- Action Figures
- Baby Boys
- Baby Girls
- Bakeware
- Basic Cases
- Bathroom Accessories
- Bathroom Fixtures
- Bedroom Furniture
- Body
- Camping & Hiking
- Clothing
- Computer Accessories & Peripherals
- Computer Components
- Computers & Tablets
- Cooking & Baking
- Cookware
- Cycling
- Decorations
- Decorative Pillows, Inserts & Covers
- Dining & Entertaining
- Face
- Fishing
- Hair Extensions, Wigs & Accessories
- Hand Tools
- Handbags & Wallets
- Home Décor Accents
- Jewelry
- Kitchen & Table Linens
- Kitchen Utensils & Gadgets
- Laptop Accessories
- Literature & Fiction
- Living Room Furniture
- Men
- Nail Art & Polish
- OTC Medications & Treatments
- Paper
- Paper & Plastic
- Posters & Prints
- Sheets & Pillowcases
- Shoes
- Shooting
- Small Appliances
- Storage & Organization
- Uniforms, Work & Safety
- Watches
- Window Treatments
- Women
- Writing & Correction Supplies
- type: string
name: color
field: item.color
scope: item
encode: index
values:
- black
- blue
- brown
- green
- grey
- multicolor
- pink
- red
- silver
- white
- type: string
name: material
field: item.material
scope: item
encode: index
values:
- fabric
- glass
- leather
- metal
- paper
- plastic
- rubber
- silicone
- steel
- wood
- type: number
name: price
field: item.price
scope: item
- type: number
name: ratings
field: item.ratings
scope: item
- type: number
name: stars
field: item.stars
scope: item
- type: string
name: template
field: item.template
scope: item
encode: index
values:
- apparel
- art_and_craft_supply
- automotive
- beauty
- biss_basic
- book
- ce
- ebooks
- grocery
- health_and_beauty
- home
- home_improvement
- jewelry
- kitchen
- lawn_and_garden
- office_product
- pc
- pet_products
- shoes
- sports
- toy
- wireless
- type: number
name: weight
field: item.weight
scope: item
models:
noop:
type: noop
ce:
type: lambdamart
backend:
type: xgboost
iterations: 100
features:
- query_title_ce
split: field=split:train:test
weights: {}
ce-ft:
type: lambdamart
backend:
type: xgboost
iterations: 100
features:
- query_title_ce_ft
split: field=split:train:test
weights: {}
bm25:
type: lambdamart
backend:
type: xgboost
iterations: 100
features:
- query_title_bm25
- query_desc_bm25
- query_bullets_bm25
split: field=split:train:test
weights: {}
ltr-bm25-meta:
type: lambdamart
backend:
type: xgboost
iterations: 100
features:
- query_title_bm25
- query_desc_bm25
- query_bullets_bm25
- category0
- category1
- category2
- color
- material
- price
- ratings
- stars
- template
- weight
weights: {}
split: field=split:train:test
ltr-bm25-meta-minilm:
type: lambdamart
backend:
type: xgboost
iterations: 100
features:
- query_title_minilm_ft
- query_title_bm25
- query_desc_bm25
- query_bullets_bm25
- category0
- category1
- category2
- color
- material
- price
- ratings
- stars
- template
- weight
weights: {}
split: field=split:train:test
ltr-bm25-meta-minilm-ce:
type: lambdamart
backend:
type: xgboost
iterations: 100
features:
- query_title_minilm_ft
- query_title_ce_ft
- query_title_bm25
- query_desc_bm25
- query_bullets_bm25
- category0
- category1
- category2
- color
- material
- price
- ratings
- stars
- template
- weight
weights: {}
split: field=split:train:test