You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code runs under python 3+ and depends on the following libraries:
numpy
pandas
scipy
pickel
sklearn
Note
As the return data studied in this project is private, we cannot release it. Here, we simulate data to demonstrate how to use of the code.
To run the code
The code can be run with two steps:
Run the Simulate data.ipynb under notebook to generate simulate data and to understand the data structure
This step can be run in two ways:
first run the pre_process.py and then run the main.py to run the hypergo
simply run any of the main_*.py to do the studies used inside the paper. The main scripts will random splits the data and then tain, test etc.
It should be relatively straightforward to know the purpose of each main script based on the name.
Some of the postprocessing scripts are also included under the script folder.
TODO
The codes have been cleaned and tested. You should be able to run through the code without any issues. If you meet any issues, please leave me a message.
Thanks and enjoy.
About
This is the HyperGo algorithm introduced in paper "E-tail Product Return Prediction via Hypergraph-based Local Graph Cut" published in KDD 2018