# Acquire Valued Shoppers Challenge — Data

来源：https://www.kaggle.com/competitions/acquire-valued-shoppers-challenge/data

本地 Meta Kaggle 快照；不是本次实时页面。

# Dataset Description

<p><strong>Warning: this is a large data set.</strong> The decompressed files require about 22GB of space.</p>
<p>This data captures the process of offering incentives (a.k.a. coupons) to a large number of customers and forecasting those who will become loyal to the product. Let's say 100 customers are offered a discount to purchase two bottles of water. Of the 100 customers, 60 choose to redeem the offer. These 60 customers are the focus of this competition. You are asked to predict which of the 60 will return (during or after the promotional period) to purchase the same item again.</p>
<p>To create this prediction, you are given a minimum of a year of shopping history prior to each customer's incentive, as well as the purchase histories of many other shoppers (some of whom will have received the same offer). The transaction history contains all items purchased, not just items related to the offer. Only one offer per customer is included in the data. The training set is comprised of offers issued before 2013-05-01. The test set is offers issued on or after 2013-05-01.</p>
<h2>Files</h2>
<p>You are provided four relational files:</p>
<ul>
<li><span style="font-size: 1em; line-height: 1.5em;"><strong>transactions.csv</strong> - contains transaction history for all customers for a period of at least 1 year prior to their offered incentive</span></li>
<li><span style="font-size: 1em; line-height: 1.5em;"><strong>trainHistory.csv</strong> - contains the incentive offered to each customer and information about the behavioral response to the offer</span></li>
<li><span style="font-size: 1em; line-height: 1.5em;"><strong>testHistory.csv</strong> - contains the incentive offered to each customer but does not include their response (you are predicting the repeater column for each id in this file)</span></li>
<li><span style="font-size: 1em; line-height: 1.5em;"><strong>offers.csv</strong> - contains information about the offers</span></li>
</ul>
<h2>Fields</h2>
<p>All of the fields are anonymized and categorized to protect customer and sales information. The specific meanings of the fields will not be provided (so don't bother asking). Part of the challenge of this competition is learning the taxonomy of items in a data-driven way.</p>
<p><em>history</em><strong><br />id</strong> - A unique id representing a customer<br /><strong>chain</strong> - An integer representing a store chain<br /><strong>offer</strong> - An id representing a certain offer<br /><strong>market</strong> - An id representing a geographical region<br /><strong>repeattrips</strong> - The number of times the customer made a repeat purchase<br /><strong>repeater</strong> - A boolean, equal to repeattrips &gt; 0<br /><strong>offerdate</strong> - The date a customer received the offer</p>
<p><em>transactions<br /></em><strong>id</strong> - see above<br /><strong>chain</strong> - see above<br /><strong>dept</strong> - An aggregate grouping of the Category (e.g. water)<br /><strong>category</strong> - The product category (e.g. sparkling water)<br /><strong>company</strong> - An id of the company that sells the item<br /><strong>brand</strong> - An id of the brand to which the item belongs<br /><strong>date</strong> - The date of purchase<br /><strong>productsize</strong> - The amount of the product purchase (e.g. 16 oz of water)<br /><strong>productmeasure</strong> - The units of the product purchase (e.g. ounces)<br /><strong>purchasequantity</strong> - The number of units purchased<br /><strong>purchaseamount</strong> - The dollar amount of the purchase</p>
<p><em>offers<br /></em><strong>offer</strong> - see above<br /><strong>category </strong>- see above<strong><br />quantity</strong> - The number of units one must purchase to get the discount<br /><strong>company </strong>- see above<strong><br />offervalue</strong> - The dollar value of the offer<br /><strong>brand</strong> - see above</p>
<p>The transactions file can be joined to the history file by (id,chain). The history file can be joined to the offers file by (offer). The transactions file can be joined to the offers file by (category, brand, company). A negative value in productquantity and purchaseamount indicates a return.</p>