parquet-converter commited on
Commit
db27cc7
1 Parent(s): acac1e8

Update parquet files

Browse files
README.md DELETED
@@ -1,80 +0,0 @@
1
-
2
- # FINN.no Slate Dataset for Recommender Systems
3
- > Data and helper functions for FINN.no slate dataset containing both viewed items and clicks from the FINN.no second hand marketplace.
4
-
5
- Note: The dataset is originally hosted at https://github.com/finn-no/recsys_slates_dataset and this is a copy of the readme until this repo is properly created "huggingface-style".
6
-
7
- We release the *FINN.no slate dataset* to improve recommender systems research.
8
- The dataset includes both search and recommendation interactions between users and the platform over a 30 day period.
9
- The dataset has logged both exposures and clicks, *including interactions where the user did not click on any of the items in the slate*.
10
- To our knowledge there exists no such large-scale dataset, and we hope this contribution can help researchers constructing improved models and improve offline evaluation metrics.
11
-
12
- ![A visualization of a presented slate to the user on the frontpage of FINN.no](finn-frontpage.png)
13
-
14
- For each user u and interaction step t we recorded all items in the visible slate ![equ](https://latex.codecogs.com/gif.latex?a_t^u(s_t^u) ) (up to the scroll length ![equ](https://latex.codecogs.com/gif.latex?s_t^u)), and the user's click response ![equ](https://latex.codecogs.com/gif.latex?c_t^u).
15
- The dataset consists of 37.4 million interactions, |U| ≈ 2.3) million users and |I| ≈ 1.3 million items that belong to one of G = 290 item groups. For a detailed description of the data please see the [paper](https://arxiv.org/abs/2104.15046).
16
-
17
- ![A visualization of a presented slate to the user on the frontpage of FINN.no](interaction_illustration.png)
18
-
19
- FINN.no is the leading marketplace in the Norwegian classifieds market and provides users with a platform to buy and sell general merchandise, cars, real estate, as well as house rentals and job offerings.
20
- For questions, email simen.eide@finn.no or file an issue.
21
-
22
- ## Install
23
-
24
- `pip install recsys_slates_dataset`
25
-
26
- ## How to use
27
-
28
- To download the generic numpy data files:
29
-
30
- ```
31
- from recsys_slates_dataset import data_helper
32
- data_helper.download_data_files(data_dir="data")
33
- ```
34
-
35
- Download and prepare data into ready-to-use PyTorch dataloaders:
36
-
37
- ``` python
38
- from recsys_slates_dataset import dataset_torch
39
- ind2val, itemattr, dataloaders = dataset_torch.load_dataloaders(data_dir="data")
40
- ```
41
-
42
- ## Organization
43
- The repository is organized as follows:
44
- - The dataset is placed in `data/` and stored using git-lfs. We also provide an automatic download function in the pip package (preferred usage).
45
- - The code open sourced from the article ["Dynamic Slate Recommendation with Gated Recurrent Units and Thompson Sampling"](https://arxiv.org/abs/2104.15046) is found in (`code_eide_et_al21/`). However, we are in the process of making the data more generally available which makes the code incompatible with the current (newer) version of the data. Please use [the v1.0 release of the repository](https://github.com/finn-no/recsys-slates-dataset/tree/v1.0) for a compatible version of the code and dataset.
46
-
47
- ## Quickstart dataset [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/finn-no/recsys-slates-dataset/blob/main/examples/quickstart-finn-recsys-slate-data.ipynb)
48
- We provide a quickstart Jupyter notebook that runs on Google Colab (quickstart-finn-recsys-slate-data.ipynb) which includes all necessary steps above.
49
- It gives a quick introduction to how to use the dataset.
50
-
51
- ## Example training scripts
52
- We provide an example training jupyter notebook that implements a matrix factorization model with categorical loss that can be found in `examples/`.
53
- It is also runnable using Google Colab: [![matrix_factorization.ipynb](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/finn-no/recsys-slates-dataset/blob/main/examples/matrix_factorization.ipynb)
54
- There is ongoing work in progress to build additional examples and use them as benchmarks for the dataset.
55
-
56
- ### Dataset files
57
- The dataset `data.npz` contains the following fields:
58
- - userId: The unique identifier of the user.
59
- - click: The items the user clicked on in each of the 20 presented slates.
60
- - click_idx: The index the clicked item was on in each of the 20 presented slates.
61
- - slate_lengths: The length of the 20 presented slates.
62
- - slate: All the items in each of the 20 presented slates.
63
- - interaction_type: The recommendation slate can be the result of a search query (1), a recommendation (2) or can be undefined (0).
64
-
65
- The dataset `itemattr.npz` contains the categories ranging from 0 to 290. Corresponding with the 290 unique groups that the items belong to. These 290 unique groups are constructed using a combination of categorical information and the geographical location.
66
-
67
- The dataset `ind2val.json` contains the mapping between the indices and the values of the categories (e.g. `"287": "JOB, Rogaland"`) and interaction types (e.g. `"1": "search"`).
68
- ## Citations
69
- This repository accompanies the paper ["Dynamic Slate Recommendation with Gated Recurrent Units and Thompson Sampling"](https://arxiv.org/abs/2104.15046) by Simen Eide, David S. Leslie and Arnoldo Frigessi.
70
- The article is under review, and the preprint can be obtained [here](https://arxiv.org/abs/2104.15046).
71
-
72
- If you use either the code, data or paper, please consider citing the paper.
73
-
74
- ```
75
- Eide, S., Leslie, D.S. & Frigessi, A. Dynamic slate recommendation with gated recurrent units and Thompson sampling. Data Min Knowl Disc (2022). https://doi.org/10.1007/s10618-022-00849-w
76
- ```
77
-
78
- ---
79
- license: apache-2.0
80
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
data/data.npz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:15b6e5d0430c783f4a5190e31a952ed2aabc61a4beef77aedc0aef1865cc0f3f
3
- size 1275360646
 
 
 
 
data/data32.npz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:38b852729aaf0f8dcdd5866efdfc318923b9462af2b8f254471c6cea746195a1
3
- size 1171729919
 
 
 
 
data/ind2val.json DELETED
@@ -1 +0,0 @@
1
- {"category": {"0": "PAD", "1": "noClick", "2": "<UNK>", "3": "BAP,antiques,Tr\u00f8ndelag", "4": "MOTOR,,Sogn og Fjordane", "5": "BAP,electronicsappliances,Finnmark", "6": "BAP,entertainmenthobbyleisure,\u00d8stfold", "7": "MOTOR,,Hedmark", "8": "BAP,antiques", "9": "BOAT,,M\u00f8re og Romsdal", "10": "BAP,animalsequipment,\u00d8stfold", "11": "BAP,entertainmenthobbyleisure,M\u00f8re og Romsdal", "12": "BAP,housegardenrenovation,\u00d8stfold", "13": "REAL_ESTATE,,M\u00f8re og Romsdal", "14": "BAP,business,Oppland", "15": "BAP", "16": "BAP,housegardenrenovation,Rogaland", "17": "BAP,housegardenrenovation,Vestfold", "18": "BAP,business,Troms", "19": "BAP,electronicsappliances,", "20": "BAP,furnitureinterior,M\u00f8re og Romsdal", "21": "BAP,parentschildren,M\u00f8re og Romsdal", "22": "BAP,sportsoutdoors,Vest-Agder", "23": "BAP,animalsequipment,Sogn og Fjordane", "24": "BAP,electronicsappliances,Sogn og Fjordane", "25": "BAP,sportsoutdoors,Nordland", "26": "BAP,sportsoutdoors,Rogaland", "27": "MOTOR,,M\u00f8re og Romsdal", "28": "BAP,animalsequipment,Rogaland", "29": "BAP,electronicsappliances,Tr\u00f8ndelag", "30": "BAP,sportsoutdoors,Buskerud", "31": "BAP,parentschildren,Tr\u00f8ndelag", "32": "BAP,business,Sogn og Fjordane", "33": "BAP,clothescosmeticsaccessories,Troms", "34": "BOAT,,\u00d8stfold", "35": "BAP,clothescosmeticsaccessories,Vestfold", "36": "BAP,sportsoutdoors,Tr\u00f8ndelag", "37": "BAP,carmcboat,Akershus", "38": "BOAT,,Oppland", "39": "BAP,housegardenrenovation,M\u00f8re og Romsdal", "40": "BAP,entertainmenthobbyleisure,Rogaland", "41": "BAP,entertainmenthobbyleisure,Tr\u00f8ndelag", "42": "BAP,parentschildren,Oppland", "43": "REAL_ESTATE,,Finnmark", "44": "TRAVEL,", "45": "BAP,furnitureinterior,Telemark", "46": "BAP,housegardenrenovation,Troms", "47": "BAP,parentschildren,Hedmark", "48": "BAP,business,M\u00f8re og Romsdal", "49": "BAP,entertainmenthobbyleisure,Oslo", "50": "MOTOR,,Vestfold", "51": "BAP,clothescosmeticsaccessories,Vest-Agder", "52": "BAP,electronicsappliances,Vest-Agder", "53": "MOTOR,,Finnmark", "54": "BAP,electronicsappliances,Telemark", "55": "BAP,housegardenrenovation,Vest-Agder", "56": "BAP,animalsequipment,Tr\u00f8ndelag", "57": "BAP,parentschildren,\u00d8stfold", "58": "BAP,carmcboat,Rogaland", "59": "BAP,furnitureinterior,\u00d8stfold", "60": "JOB,", "61": "MOTOR,,", "62": "BOAT,,Hordaland", "63": "BOAT,,Rogaland", "64": "MOTOR,,Troms", "65": "BAP,animalsequipment,Vestfold", "66": "BAP,business,Telemark", "67": "REAL_ESTATE,,Vest-Agder", "68": "BAP,carmcboat,Buskerud", "69": "BAP,electronicsappliances,Rogaland", "70": "BAP,animalsequipment,Hedmark", "71": "BAP,furnitureinterior,Vest-Agder", "72": "BAP,clothescosmeticsaccessories,Oslo", "73": "BAP,clothescosmeticsaccessories,Telemark", "74": "BAP,furnitureinterior,Sogn og Fjordane", "75": "BAP,business,Vest-Agder", "76": "BAP,carmcboat,Oppland", "77": "BAP,housegardenrenovation,Nordland", "78": "BAP,business,Oslo", "79": "JOB,,Troms", "80": "BAP,antiques,Sogn og Fjordane", "81": "BAP,clothescosmeticsaccessories,Sogn og Fjordane", "82": "BAP,parentschildren,Buskerud", "83": "BAP,sportsoutdoors,Finnmark", "84": "BAP,carmcboat,Vestfold", "85": "REAL_ESTATE,,Sogn og Fjordane", "86": "BAP,antiques,M\u00f8re og Romsdal", "87": "BAP,furnitureinterior,Oslo", "88": "BAP,parentschildren,Akershus", "89": "BAP,animalsequipment,", "90": "BAP,sportsoutdoors,\u00d8stfold", "91": "BAP,entertainmenthobbyleisure", "92": "JOB,,Telemark", "93": "REAL_ESTATE,,", "94": "BAP,clothescosmeticsaccessories,Hordaland", "95": "BAP,electronicsappliances,\u00d8stfold", "96": "REAL_ESTATE,,Tr\u00f8ndelag", "97": "BAP,carmcboat,Hordaland", "98": "BAP,sportsoutdoors,", "99": "JOB,,\u00d8stfold", "100": "BAP,clothescosmeticsaccessories", "101": "JOB,,Oslo", "102": "BAP,housegardenrenovation,Akershus", "103": "MOTOR,,Oslo", "104": "BAP,antiques,Buskerud", "105": "BAP,carmcboat", "106": "BAP,carmcboat,Tr\u00f8ndelag", "107": "BAP,sportsoutdoors,Troms", "108": "BAP,business,\u00d8stfold", "109": "BAP,sportsoutdoors,Sogn og Fjordane", "110": "BAP,housegardenrenovation,Tr\u00f8ndelag", "111": "MOTOR,,Vest-Agder", "112": "BAP,electronicsappliances,Oppland", "113": "BAP,parentschildren,Vestfold", "114": "BAP,sportsoutdoors,Hedmark", "115": "BAP,antiques,Akershus", "116": "BAP,animalsequipment,Vest-Agder", "117": "BAP,animalsequipment,Nordland", "118": "BAP,antiques,Troms", "119": "BAP,entertainmenthobbyleisure,Troms", "120": "BAP,entertainmenthobbyleisure,Sogn og Fjordane", "121": "BAP,furnitureinterior,Buskerud", "122": "BAP,antiques,Hedmark", "123": "BAP,clothescosmeticsaccessories,Hedmark", "124": "BAP,antiques,Rogaland", "125": "MOTOR,,Akershus", "126": "BAP,animalsequipment,M\u00f8re og Romsdal", "127": "BAP,sportsoutdoors,M\u00f8re og Romsdal", "128": "BAP,parentschildren,Vest-Agder", "129": "BAP,furnitureinterior,Rogaland", "130": "BAP,housegardenrenovation", "131": "BAP,sportsoutdoors,Oslo", "132": "JOB,,M\u00f8re og Romsdal", "133": "BAP,sportsoutdoors,Aust-Agder", "134": "BAP,entertainmenthobbyleisure,Telemark", "135": "REAL_ESTATE,,Oppland", "136": "BAP,furnitureinterior,Hordaland", "137": "BAP,housegardenrenovation,Telemark", "138": "BAP,entertainmenthobbyleisure,Oppland", "139": "MOTOR,,Aust-Agder", "140": "BAP,electronicsappliances,Troms", "141": "BAP,sportsoutdoors,Telemark", "142": "BAP,carmcboat,Sogn og Fjordane", "143": "BAP,housegardenrenovation,Oppland", "144": "MOTOR,,Buskerud", "145": "BAP,clothescosmeticsaccessories,Finnmark", "146": "REAL_ESTATE,,Buskerud", "147": "BOAT,,Oslo", "148": "BAP,housegardenrenovation,Hordaland", "149": "BOAT,,Aust-Agder", "150": "BAP,antiques,Oslo", "151": "REAL_ESTATE,,Akershus", "152": "BAP,business,", "153": "BAP,housegardenrenovation,Aust-Agder", "154": "REAL_ESTATE,,Telemark", "155": "BAP,antiques,Aust-Agder", "156": "BAP,clothescosmeticsaccessories,", "157": "MOTOR,,Rogaland", "158": "MOTOR,,Tr\u00f8ndelag", "159": "BAP,animalsequipment,Hordaland", "160": "BAP,animalsequipment,Troms", "161": "REAL_ESTATE,,Nordland", "162": "BAP,carmcboat,Oslo", "163": "BOAT,", "164": "BAP,antiques,Nordland", "165": "BAP,clothescosmeticsaccessories,Rogaland", "166": "BAP,electronicsappliances,Buskerud", "167": "BAP,clothescosmeticsaccessories,Oppland", "168": "BAP,parentschildren,Nordland", "169": "BAP,business,Akershus", "170": "BAP,carmcboat,", "171": "BAP,parentschildren,Telemark", "172": "REAL_ESTATE,,Vestfold", "173": "BAP,carmcboat,Hedmark", "174": "JOB,,Nordland", "175": "BAP,housegardenrenovation,Buskerud", "176": "BAP,parentschildren,Rogaland", "177": "BAP,business,Buskerud", "178": "BAP,business", "179": "BAP,clothescosmeticsaccessories,\u00d8stfold", "180": "BAP,entertainmenthobbyleisure,Finnmark", "181": "BAP,furnitureinterior,Vestfold", "182": "BOAT,,Vestfold", "183": "BAP,antiques,Vest-Agder", "184": "BAP,entertainmenthobbyleisure,Nordland", "185": "BAP,entertainmenthobbyleisure,Aust-Agder", "186": "BOAT,,Nordland", "187": "BAP,electronicsappliances,Vestfold", "188": "BAP,parentschildren,Troms", "189": "BAP,animalsequipment,Buskerud", "190": "BAP,business,Aust-Agder", "191": "MOTOR,,Nordland", "192": "BAP,animalsequipment,Akershus", "193": "BAP,electronicsappliances,Nordland", "194": "BOAT,,Buskerud", "195": "BOAT,,Sogn og Fjordane", "196": "BOAT,,Troms", "197": "BAP,entertainmenthobbyleisure,Hedmark", "198": "BAP,sportsoutdoors,Hordaland", "199": "BAP,furnitureinterior", "200": "BAP,entertainmenthobbyleisure,Akershus", "201": "REAL_ESTATE,,Oslo", "202": "BAP,electronicsappliances,Hedmark", "203": "BAP,antiques,Oppland", "204": "BAP,housegardenrenovation,Oslo", "205": "BAP,electronicsappliances,Oslo", "206": "BAP,business,Hedmark", "207": "BAP,clothescosmeticsaccessories,Akershus", "208": "BAP,carmcboat,Finnmark", "209": "BAP,furnitureinterior,Akershus", "210": "BAP,furnitureinterior,Troms", "211": "BOAT,,Hedmark", "212": "BAP,animalsequipment,Aust-Agder", "213": "BAP,sportsoutdoors,Vestfold", "214": "BAP,antiques,Telemark", "215": "BAP,electronicsappliances,Akershus", "216": "BAP,furnitureinterior,", "217": "BAP,furnitureinterior,Oppland", "218": "MOTOR,,Hordaland", "219": "BAP,carmcboat,Aust-Agder", "220": "BAP,entertainmenthobbyleisure,Vest-Agder", "221": "REAL_ESTATE,,\u00d8stfold", "222": "BAP,clothescosmeticsaccessories,Nordland", "223": "BAP,entertainmenthobbyleisure,Vestfold", "224": "BAP,electronicsappliances,Hordaland", "225": "BAP,animalsequipment,Telemark", "226": "JOB,,Vestfold", "227": "BAP,parentschildren,Sogn og Fjordane", "228": "JOB,,Hordaland", "229": "JOB,,Oppland", "230": "BOAT,,Telemark", "231": "BAP,furnitureinterior,Nordland", "232": "BAP,housegardenrenovation,Sogn og Fjordane", "233": "JOB,,Tr\u00f8ndelag", "234": "BAP,animalsequipment", "235": "BAP,antiques,Vestfold", "236": "REAL_ESTATE,,Hordaland", "237": "BAP,business,Nordland", "238": "BOAT,,Tr\u00f8ndelag", "239": "MOTOR,,Telemark", "240": "BOAT,,Akershus", "241": "BAP,entertainmenthobbyleisure,Buskerud", "242": "MOTOR,,\u00d8stfold", "243": "BAP,parentschildren", "244": "BAP,furnitureinterior,Aust-Agder", "245": "BAP,parentschildren,", "246": "MOTOR,", "247": "BAP,antiques,\u00d8stfold", "248": "JOB,,Vest-Agder", "249": "JOB,,Akershus", "250": "BAP,housegardenrenovation,", "251": "REAL_ESTATE,,Hedmark", "252": "BAP,clothescosmeticsaccessories,M\u00f8re og Romsdal", "253": "BAP,antiques,Hordaland", "254": "BAP,furnitureinterior,Tr\u00f8ndelag", "255": "BAP,sportsoutdoors,Akershus", "256": "BAP,animalsequipment,Oppland", "257": "BAP,entertainmenthobbyleisure,", "258": "BAP,parentschildren,Oslo", "259": "MOTOR,,Oppland", "260": "BAP,business,Vestfold", "261": "BAP,carmcboat,\u00d8stfold", "262": "BAP,parentschildren,Hordaland", "263": "REAL_ESTATE,,Rogaland", "264": "REAL_ESTATE,", "265": "BAP,carmcboat,Vest-Agder", "266": "BAP,clothescosmeticsaccessories,Tr\u00f8ndelag", "267": "BAP,electronicsappliances,M\u00f8re og Romsdal", "268": "BAP,business,Rogaland", "269": "JOB,,Hedmark", "270": "BAP,carmcboat,Troms", "271": "BAP,business,Tr\u00f8ndelag", "272": "BAP,housegardenrenovation,Hedmark", "273": "BAP,animalsequipment,Oslo", "274": "BAP,carmcboat,M\u00f8re og Romsdal", "275": "BAP,clothescosmeticsaccessories,Aust-Agder", "276": "BOAT,,Vest-Agder", "277": "JOB,,Buskerud", "278": "REAL_ESTATE,,Aust-Agder", "279": "BAP,parentschildren,Aust-Agder", "280": "BAP,sportsoutdoors,Oppland", "281": "BAP,electronicsappliances,Aust-Agder", "282": "REAL_ESTATE,,Troms", "283": "BAP,clothescosmeticsaccessories,Buskerud", "284": "BAP,business,Hordaland", "285": "BAP,entertainmenthobbyleisure,Hordaland", "286": "BAP,carmcboat,Telemark", "287": "JOB,,Rogaland", "288": "BAP,furnitureinterior,Hedmark", "289": "BAP,carmcboat,Nordland"}, "interaction_type": {"1": "search", "2": "rec", "0": "<UNK>"}}
 
 
data/itemattr.npz → simeneide--recsys_slates_dataset/json-validation.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:07e4834536f351246736824abe6847a6dd8019b8e5ca676b52ae24838aa71333
3
- size 16411
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0abe705bd53192c112b3eff2ca1556457b8eefc228618a0856cacddcf972fb0b
3
+ size 162601