This project is a project to build a model to predict when a customer will return to buy one of their frequent purchases. The dataset used in this project is the dataset from the Data Mining Cup 2022.
- Perform visualization data
- Analysis of the product sales data.
- Extract the buying patterns for each customer.
- Building clustering and classification models to predict when customers will return to buy product.
At the beginning, you can clone this repository and you have to make sure that your machine has been installed with Python (3.11.4) and PIP (23.2.1). It is recommended for using virtual environment (venv). Inside the project you can do
python -m venv env
After that, make sure your env is active. Command bellow i used in windows terminal (cmd) for activing my environment
env\Scripts\activate
If your env is active, then you can install all depedencies from the requirements.txt
pip install -r requirements.txt
to use the project, you can execute the notebook file in the notebook folder.
jupyter notebook #run notebook
![](https://private-user-images.githubusercontent.com/76652264/257549083-b4600e8c-1b15-4d27-a961-0bbbbe4d528e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ4ODgyOTEsIm5iZiI6MTcyNDg4Nzk5MSwicGF0aCI6Ii83NjY1MjI2NC8yNTc1NDkwODMtYjQ2MDBlOGMtMWIxNS00ZDI3LWE5NjEtMGJiYmJlNGQ1MjhlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI4VDIzMzMxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFhMWVhNDdjMjk2YmZiYWEzYmJjYjk3MWU1MjRhYWI4YzQ1YzZjYmJkZGUzYmY2NzBiMWVhZjAyYTU3MDQ0YWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.IuMH1uJRw4h2yFPhej6ln0in2_EGW9VFOP-Cqjrlht0)
![](https://private-user-images.githubusercontent.com/76652264/257548758-9f659585-c05d-48fa-9fce-9cf93f745eed.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ4ODgyOTEsIm5iZiI6MTcyNDg4Nzk5MSwicGF0aCI6Ii83NjY1MjI2NC8yNTc1NDg3NTgtOWY2NTk1ODUtYzA1ZC00OGZhLTlmY2UtOWNmOTNmNzQ1ZWVkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI4VDIzMzMxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU1ZmRjNTdmYmYxZWY5YmI5NDhiNjk2YjQ4NjY3NGE5OGI1YjE0NjBmMmQzMDE4ZTQxODM3MWQwMjY1MmE5NDAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.lkQZN2BtK6zzKV_-_amSMJy_FxhBNEYBbbQdAI9BVCE)
![](https://private-user-images.githubusercontent.com/76652264/257548606-ef2c0040-cd0e-4a77-98eb-6b656e2d5d8d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ4ODgyOTEsIm5iZiI6MTcyNDg4Nzk5MSwicGF0aCI6Ii83NjY1MjI2NC8yNTc1NDg2MDYtZWYyYzAwNDAtY2QwZS00YTc3LTk4ZWItNmI2NTZlMmQ1ZDhkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI4VDIzMzMxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMyMzdlMzJkOGMxZjUwMmZjYzE5NWI3ZjNhNWFiNDYxY2YxZGUxNjRlNzA4YzIwZDA0YjZiZWMyZWNkMGZmYzUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.LawSqaajgja5oB0-4awf_2O-DHReZOb5rG51QaunrnQ)
![](https://private-user-images.githubusercontent.com/76652264/257548678-98197f05-5436-435c-af8a-36ab51bf0169.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ4ODgyOTEsIm5iZiI6MTcyNDg4Nzk5MSwicGF0aCI6Ii83NjY1MjI2NC8yNTc1NDg2NzgtOTgxOTdmMDUtNTQzNi00MzVjLWFmOGEtMzZhYjUxYmYwMTY5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI4VDIzMzMxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY5OTJmZDg5YmIwY2Y5ZDI2NDdhMDFhMGZjNWZjNGZlMGVlNWYwMjQyMjFiZTc4Njc3ZjhmMTk3OWE3ZDg3NmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.PZIcZvUF_mLH_Vdsciirj0NOKKzIeXkqM1TIJ5C2nf8)