category
dict
interaction_type
dict
{ "0": "PAD", "1": "noClick", "2": "<UNK>", "3": "BAP,antiques,Trøndelag", "4": "MOTOR,,Sogn og Fjordane", "5": "BAP,electronicsappliances,Finnmark", "6": "BAP,entertainmenthobbyleisure,Østfold", "7": "MOTOR,,Hedmark", "8": "BAP,antiques", "9": "BOAT,,Møre og Romsdal", "10": "BAP,animalsequipment,Østfold", "11": "BAP,entertainmenthobbyleisure,Møre og Romsdal", "12": "BAP,housegardenrenovation,Østfold", "13": "REAL_ESTATE,,Møre 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øre og Romsdal", "21": "BAP,parentschildren,Møre 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øre og Romsdal", "28": "BAP,animalsequipment,Rogaland", "29": "BAP,electronicsappliances,Trøndelag", "30": "BAP,sportsoutdoors,Buskerud", "31": "BAP,parentschildren,Trøndelag", "32": "BAP,business,Sogn og Fjordane", "33": "BAP,clothescosmeticsaccessories,Troms", "34": "BOAT,,Østfold", "35": "BAP,clothescosmeticsaccessories,Vestfold", "36": "BAP,sportsoutdoors,Trøndelag", "37": "BAP,carmcboat,Akershus", "38": "BOAT,,Oppland", "39": "BAP,housegardenrenovation,Møre og Romsdal", "40": "BAP,entertainmenthobbyleisure,Rogaland", "41": "BAP,entertainmenthobbyleisure,Trøndelag", "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øre 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øndelag", "57": "BAP,parentschildren,Østfold", "58": "BAP,carmcboat,Rogaland", "59": "BAP,furnitureinterior,Østfold", "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øre og Romsdal", "87": "BAP,furnitureinterior,Oslo", "88": "BAP,parentschildren,Akershus", "89": "BAP,animalsequipment,", "90": "BAP,sportsoutdoors,Østfold", "91": "BAP,entertainmenthobbyleisure", "92": "JOB,,Telemark", "93": "REAL_ESTATE,,", "94": "BAP,clothescosmeticsaccessories,Hordaland", "95": "BAP,electronicsappliances,Østfold", "96": "REAL_ESTATE,,Trøndelag", "97": "BAP,carmcboat,Hordaland", "98": "BAP,sportsoutdoors,", "99": "JOB,,Østfold", "100": "BAP,clothescosmeticsaccessories", "101": "JOB,,Oslo", "102": "BAP,housegardenrenovation,Akershus", "103": "MOTOR,,Oslo", "104": "BAP,antiques,Buskerud", "105": "BAP,carmcboat", "106": "BAP,carmcboat,Trøndelag", "107": "BAP,sportsoutdoors,Troms", "108": "BAP,business,Østfold", "109": "BAP,sportsoutdoors,Sogn og Fjordane", "110": "BAP,housegardenrenovation,Trøndelag", "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øre og Romsdal", "127": "BAP,sportsoutdoors,Møre og Romsdal", "128": "BAP,parentschildren,Vest-Agder", "129": "BAP,furnitureinterior,Rogaland", "130": "BAP,housegardenrenovation", "131": "BAP,sportsoutdoors,Oslo", "132": "JOB,,Møre 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øndelag", "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,Østfold", "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,,Østfold", "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øndelag", "234": "BAP,animalsequipment", "235": "BAP,antiques,Vestfold", "236": "REAL_ESTATE,,Hordaland", "237": "BAP,business,Nordland", "238": "BOAT,,Trøndelag", "239": "MOTOR,,Telemark", "240": "BOAT,,Akershus", "241": "BAP,entertainmenthobbyleisure,Buskerud", "242": "MOTOR,,Østfold", "243": "BAP,parentschildren", "244": "BAP,furnitureinterior,Aust-Agder", "245": "BAP,parentschildren,", "246": "MOTOR,", "247": "BAP,antiques,Østfold", "248": "JOB,,Vest-Agder", "249": "JOB,,Akershus", "250": "BAP,housegardenrenovation,", "251": "REAL_ESTATE,,Hedmark", "252": "BAP,clothescosmeticsaccessories,Møre og Romsdal", "253": "BAP,antiques,Hordaland", "254": "BAP,furnitureinterior,Trøndelag", "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,Østfold", "262": "BAP,parentschildren,Hordaland", "263": "REAL_ESTATE,,Rogaland", "264": "REAL_ESTATE,", "265": "BAP,carmcboat,Vest-Agder", "266": "BAP,clothescosmeticsaccessories,Trøndelag", "267": "BAP,electronicsappliances,Møre og Romsdal", "268": "BAP,business,Rogaland", "269": "JOB,,Hedmark", "270": "BAP,carmcboat,Troms", "271": "BAP,business,Trøndelag", "272": "BAP,housegardenrenovation,Hedmark", "273": "BAP,animalsequipment,Oslo", "274": "BAP,carmcboat,Møre 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" }
{ "0": "<UNK>", "1": "search", "2": "rec" }
YAML Metadata Warning: empty or missing yaml metadata in repo card (https://huggingface.co/docs/hub/datasets-cards)

FINN.no Slate Dataset for Recommender Systems

Data and helper functions for FINN.no slate dataset containing both viewed items and clicks from the FINN.no second hand marketplace.

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".

We release the FINN.no slate dataset to improve recommender systems research. The dataset includes both search and recommendation interactions between users and the platform over a 30 day period. The dataset has logged both exposures and clicks, including interactions where the user did not click on any of the items in the slate. 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.

A visualization of a presented slate to the user on the frontpage of FINN.no

For each user u and interaction step t we recorded all items in the visible slate equ (up to the scroll length equ), and the user's click response equ. 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.

A visualization of a presented slate to the user on the frontpage of FINN.no

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. For questions, email simen.eide@finn.no or file an issue.

Install

pip install recsys_slates_dataset

How to use

To download the generic numpy data files:

from recsys_slates_dataset import data_helper
data_helper.download_data_files(data_dir="data")

Download and prepare data into ready-to-use PyTorch dataloaders:

from recsys_slates_dataset import dataset_torch
ind2val, itemattr, dataloaders = dataset_torch.load_dataloaders(data_dir="data")

Organization

The repository is organized as follows:

Quickstart dataset Open In Colab

We provide a quickstart Jupyter notebook that runs on Google Colab (quickstart-finn-recsys-slate-data.ipynb) which includes all necessary steps above. It gives a quick introduction to how to use the dataset.

Example training scripts

We provide an example training jupyter notebook that implements a matrix factorization model with categorical loss that can be found in examples/. It is also runnable using Google Colab: matrix_factorization.ipynb
There is ongoing work in progress to build additional examples and use them as benchmarks for the dataset.

Dataset files

The dataset data.npz contains the following fields:

  • userId: The unique identifier of the user.
  • click: The items the user clicked on in each of the 20 presented slates.
  • click_idx: The index the clicked item was on in each of the 20 presented slates.
  • slate_lengths: The length of the 20 presented slates.
  • slate: All the items in each of the 20 presented slates.
  • interaction_type: The recommendation slate can be the result of a search query (1), a recommendation (2) or can be undefined (0).

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.

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").

Citations

This repository accompanies the paper "Dynamic Slate Recommendation with Gated Recurrent Units and Thompson Sampling" by Simen Eide, David S. Leslie and Arnoldo Frigessi. The article is under review, and the preprint can be obtained here.

If you use either the code, data or paper, please consider citing the paper.

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

license: apache-2.0

Downloads last month
2
Edit dataset card