Spaces:
Running
Running
File size: 916 Bytes
c689089 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# config.py
import os
# === Paths ===
BASE_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
DATA_PATH = os.path.join(BASE_DIR, "..", "data", "processed", "energy_consumption_aggregated_cleaned.csv")
RESULTS_DIR = os.path.join(BASE_DIR, "results")
MODEL_DIR = os.path.join(BASE_DIR, "model")
# === Feature-Definition ===
FEATURES = [
"hour_sin", "hour_cos",
"weekday_sin", "weekday_cos",
"rolling_mean_6h",
"month_sin", "month_cos",
"temperature_c",
"consumption_last_week",
"consumption_yesterday",
"consumption_last_hour"
]
TARGET = "consumption_MW"
# === Hyperparameters fpr LightGBM ===
LIGHTGBM_PARAMS = {
'learning_rate': 0.05,
'num_leaves': 15,
'max_depth': 5,
'lambda_l1': 1.0,
'lambda_l2': 0.0,
'min_split_gain': 0.0,
'n_estimators': 1000,
'objective': 'regression'}
# === Early Stopping ===
EARLY_STOPPING_ROUNDS = 50
|