Spaces:
Running
Running
Add observation context features to trainer
Browse files
app.py
CHANGED
|
@@ -74,6 +74,24 @@ FEATURE_CANDIDATES = [
|
|
| 74 |
"dmi_precipitation_pred_run_delta",
|
| 75 |
"dmi_pressure_msl_pred_run_delta",
|
| 76 |
"dmi_relative_humidity_2m_pred_run_delta",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
]
|
| 78 |
|
| 79 |
TARGET_SPECS = {
|
|
@@ -668,7 +686,7 @@ def auto_retrain():
|
|
| 668 |
|
| 669 |
def run_scheduler():
|
| 670 |
log_event("scheduler starting")
|
| 671 |
-
schedule.every().sunday.at("06:
|
| 672 |
log_event("scheduler_registered")
|
| 673 |
while True:
|
| 674 |
try:
|
|
|
|
| 74 |
"dmi_precipitation_pred_run_delta",
|
| 75 |
"dmi_pressure_msl_pred_run_delta",
|
| 76 |
"dmi_relative_humidity_2m_pred_run_delta",
|
| 77 |
+
"obs_temp_lag_1h",
|
| 78 |
+
"obs_temp_mean_3h",
|
| 79 |
+
"obs_temp_mean_6h",
|
| 80 |
+
"obs_wind_lag_1h",
|
| 81 |
+
"obs_wind_mean_3h",
|
| 82 |
+
"obs_wind_mean_6h",
|
| 83 |
+
"obs_wind_u_lag_1h",
|
| 84 |
+
"obs_wind_u_mean_3h",
|
| 85 |
+
"obs_wind_v_lag_1h",
|
| 86 |
+
"obs_wind_v_mean_3h",
|
| 87 |
+
"obs_pressure_lag_1h",
|
| 88 |
+
"obs_pressure_mean_3h",
|
| 89 |
+
"obs_humidity_lag_1h",
|
| 90 |
+
"obs_humidity_mean_3h",
|
| 91 |
+
"obs_precip_lag_1h",
|
| 92 |
+
"obs_precip_sum_3h",
|
| 93 |
+
"obs_precip_sum_6h",
|
| 94 |
+
"obs_precip_sum_12h",
|
| 95 |
]
|
| 96 |
|
| 97 |
TARGET_SPECS = {
|
|
|
|
| 686 |
|
| 687 |
def run_scheduler():
|
| 688 |
log_event("scheduler starting")
|
| 689 |
+
schedule.every().sunday.at("06:50").do(lambda: run_logged("scheduled_auto_retrain", auto_retrain))
|
| 690 |
log_event("scheduler_registered")
|
| 691 |
while True:
|
| 692 |
try:
|