Spaces:
Build error
Build error
Download data_utils/data_simulation.py from neuronslabs/uplift_modeling: direct link, hf CLI and curl.
- Browser
- Download file 702 Bytes
-
https://huggingface.co/spaces/neuronslabs/uplift_modeling/resolve/main/data_utils/data_simulation.py
- Command line
-
hf download hf://spaces/neuronslabs/uplift_modeling/data_utils/data_simulation.py
-
curl -L -o data_simulation.py https://huggingface.co/spaces/neuronslabs/uplift_modeling/resolve/main/data_utils/data_simulation.py
702 Bytes
| import pandas as pd | |
| class UpliftSimulationReady: | |
| def __init__(self, files_path): | |
| self.files_path = files_path | |
| def load_user_profiles(self, file_name): | |
| user_profiles = pd.read_csv(self.files_path + file_name) | |
| return user_profiles | |
| def load_uplift_data(self, file_name): | |
| uplift_data = pd.read_csv(self.files_path + file_name) | |
| return uplift_data | |
| def load_irrelevant_data(self, file_name): | |
| irrelevant_data = pd.read_csv(self.files_path + file_name) | |
| return irrelevant_data | |
| def load_other_data(self, file_name): | |
| transaction_data = pd.read_csv(self.files_path + file_name) | |
| return transaction_data |