naomihng / coupon-purchase-prediction

Predict coupon purchase based on past purchase and browsing behavior (data from Kaggle)
1 stars 1 forks source link

after exploring user prefecture vs coupon prefecture, if necessary find distance of user from nearest coupon prefecture #5

Open naomihng opened 7 years ago

naomihng commented 7 years ago

using lat lon

naomihng commented 7 years ago

to find distance between user and coupon, use user_list prefecture merge with detail (purchase log) using user_id merge with area_train using coupon ID merge with lat lon table for each prefecture

find nearest prefecture for each coupon-user pair (using lat lon) --> get a dataframe with one row = one coupon-user pair