Spaces:
Sleeping
Sleeping
Download modules/models.py from m8chaa/mvno_plan_ranking_model: direct link, hf CLI and curl.
- Browser
- Download file 864 Bytes
-
https://huggingface.co/spaces/m8chaa/mvno_plan_ranking_model/resolve/main/modules/models.py
- Command line
-
hf download hf://spaces/m8chaa/mvno_plan_ranking_model/modules/models.py
-
curl -L -o models.py https://huggingface.co/spaces/m8chaa/mvno_plan_ranking_model/resolve/main/modules/models.py
864 Bytes
| import numpy as np | |
| import pandas as pd | |
| import os | |
| from pathlib import Path | |
| import json | |
| from datetime import datetime | |
| # This file previously contained the XGBoostModel class and related functions. | |
| # Both the XGBoost and Spearman implementations have been removed in favor | |
| # of the Cost-Spec ratio method. | |
| # If model functionality is needed in the future, it should be implemented here. | |
| def get_basic_feature_list(): | |
| """Return a list of basic feature names used for modeling.""" | |
| return [ | |
| 'is_5g', | |
| 'basic_data_clean', | |
| 'basic_data_unlimited', | |
| 'daily_data_clean', | |
| 'daily_data_unlimited', | |
| 'voice_clean', | |
| 'voice_unlimited', | |
| 'message_clean', | |
| 'message_unlimited', | |
| 'throttle_speed_normalized', | |
| 'tethering_gb', | |
| 'unlimited_type_numeric', | |
| 'additional_call' | |
| ] |