Konuktor92 commited on
Commit
7373b33
·
verified ·
1 Parent(s): a5899e5

backup _backup/configs 17:44:24

Browse files
Files changed (1) hide show
  1. _backup/configs/model_v2_ca.yaml +78 -0
_backup/configs/model_v2_ca.yaml ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TrendeX expected-greenness for Central Asia, protocol v2-ca.
2
+ # Locked BEFORE the first fit (git). Differs from v1 (Naryn) only where the CA data force it; listed below.
3
+ # Budget constraint: the whole run must fit the remaining Vast credit, hence the smaller tuning/seed budget.
4
+
5
+ name: expected-greenness-ca
6
+ version: v2-ca
7
+ question: >
8
+ How much of each pasture cell's summer greenness anomaly in Kazakhstan, Kyrgyzstan, Tajikistan, Turkmenistan and
9
+ Uzbekistan is explained by weather (IMERG precipitation, GLDAS air temperature, soil moisture, snow) and terrain?
10
+ Residual = change not explained by weather (never called a cause).
11
+
12
+ data:
13
+ cube: TrendeX90/ca-cube
14
+ cells: mask_reason is null # excludes water, ice, urban, too_steep (>35 deg), barren, cropland, forest
15
+ months: [5, 6, 7, 8, 9]
16
+ years: [2001, 2025]
17
+ target_rows: ndvi_ok == true
18
+ training_sample: {cells: 150000, sampling: uniform random over eligible cells, seed: 0}
19
+ prediction: every eligible cell (out-of-fold, see cross_fit)
20
+
21
+ target:
22
+ name: ndvi_anomaly
23
+ definition: ndvi - clim(cell, month)
24
+ climatology: training years of the current split only; leave-own-year-out for training rows
25
+
26
+ features:
27
+ static: [elev_mean, elev_std, slope_mean, steep_share, aspect_sin, aspect_cos, tpi, grass_frac, barren_frac, crop_frac, lc_type1, lat]
28
+ calendar: [month]
29
+ climatology: [clim_ndvi]
30
+ weather_anomalies: # value - 2001-2025 mean of the same cell and month
31
+ - precip_m # IMERG, this month
32
+ - precip_2m # this + previous month (Apr available for May)
33
+ - precip_winter # Oct (previous year) .. Mar sum
34
+ - tair_m # GLDAS air temperature, this month
35
+ - tair_prev # previous month
36
+ - soil_m # GLDAS 0-10 cm soil moisture
37
+ - swe_apr # GLDAS snow water equivalent in April
38
+ changes_vs_v1:
39
+ - "MODIS LST/snow replaced by GLDAS tair/swe (MODIS 8-day products for all of CA are too large for the budget)"
40
+ - "precip_3m -> precip_2m (the CA cube keeps Apr-Oct only); winter window Oct-Mar instead of Oct-Apr"
41
+ - "lat added as a static feature: the region spans 35-55 N, so latitude carries day length / season length; x/lon and year still excluded"
42
+ - "crop_frac added as a static feature"
43
+ excluded_on_purpose: [year, lon, x, y, any NDVI lag]
44
+
45
+ splits:
46
+ temporal_test: {train: [2001, 2019], test: [2020, 2025]}
47
+ spatial_test: {kind: GroupKFold, folds: 5, group: superblock_33x33_cells}
48
+ cross_fit_for_residuals: {kind: contiguous_year_blocks, blocks: [[2001, 2005], [2006, 2010], [2011, 2015], [2016, 2020], [2021, 2025]]}
49
+ inner_validation_for_tuning: {train: [2001, 2015], valid: [2016, 2019]}
50
+
51
+ baselines:
52
+ B0_climatology: anomaly = 0
53
+ B1_ridge: Ridge on the same standardized features, alpha chosen on the inner split
54
+
55
+ model:
56
+ kind: xgboost
57
+ params_fixed: {tree_method: hist, device: cuda, objective: "reg:squarederror"}
58
+ tuning: {sampler: optuna_tpe, max_minutes: 10, max_trials: 20}
59
+ seeds: [0, 1, 2]
60
+
61
+ metrics:
62
+ primary: skill_vs_ridge = 1 - MSE_model / MSE_ridge
63
+ others: [rmse, mae, skill_vs_climatology, anomaly_correlation, tercile_balanced_accuracy]
64
+ uncertainty: {temporal: bootstrap over test years, spatial: bootstrap over superblocks, resamples: 2000}
65
+
66
+ gate:
67
+ rule: ship xgboost only if the 95% CI lower bound of skill_vs_ridge > 0 on BOTH temporal and spatial tests
68
+ otherwise: ship ridge and say so
69
+
70
+ intervals: {method: split conformal on inner-split residuals per month, levels: [0.1, 0.9], check: coverage on temporal test}
71
+
72
+ residual_trends:
73
+ series: summer (Jun-Aug) mean of out-of-fold residuals per cell and year; residual referenced to the all-years cell climatology
74
+ test: trend.py trend_1d (Hamed-Rao), copied unchanged from the backend
75
+ multiple_testing: Benjamini-Hochberg across cells, q < 0.05
76
+ min_years: 18
77
+ placebo: 200 permutations on a 200,000-cell random subsample
78
+ aggregates: [block, region (ADM1), country]