Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

03g — Does the blocked cross-validation depend on HEALPix or on WGS84?

LifeWatch ERIC

Step 3(b) groups the training pool into HEALPix cells (WGS84) and holds whole cells out together. A reader could ask whether the blocked accuracies (0.854–0.869) are an artefact of that grid. Here the same procedure (pool, GroupKFold(5), per-fold training subsample, seeds) is repeated with:

  • HEALPix NESTED on WGS84 (as in step 3(b); must reproduce its numbers),

  • HEALPix NESTED on the sphere,

  • latitude/longitude squares with the same area as the HEALPix cells of each depth,

  • the same squares shifted by half a block (to show how much an arbitrary placement of block boundaries moves the result).

Only the grouping changes; the model, data and folds’ sizes are otherwise identical.

pool records 151,980
{'scheme': 'random', 'family': 'random', 'depth': None, 'block_km': None, 'n_blocks': None, 'mean_accuracy': 0.8866100802737202, 'sd': 0.0012736655622142049, 'folds': '0.8885 0.8871 0.8856 0.8854 0.8864'}
{'scheme': 'healpix_wgs84_d6', 'family': 'HEALPix, WGS84', 'depth': 6, 'block_km': 101.9, 'n_blocks': 131, 'mean_accuracy': 0.8538238025590899, 'sd': 0.03631765639121536, 'folds': '0.8177 0.8251 0.8421 0.8980 0.8862'}
{'scheme': 'healpix_sphere_d6', 'family': 'HEALPix, sphere', 'depth': 6, 'block_km': 101.9, 'n_blocks': 131, 'mean_accuracy': 0.8530537453628717, 'sd': 0.043118298587277046, 'folds': '0.8026 0.8131 0.8641 0.8963 0.8892'}
{'scheme': 'latlon_d6', 'family': 'lat/lon squares', 'depth': 6, 'block_km': 101.9, 'n_blocks': 135, 'mean_accuracy': 0.8544939597128389, 'sd': 0.02678373810081146, 'folds': '0.8084 0.8586 0.8768 0.8598 0.8688'}
{'scheme': 'latlon_shifted_d6', 'family': 'lat/lon squares, shifted half a block', 'depth': 6, 'block_km': 101.9, 'n_blocks': 135, 'mean_accuracy': 0.8346036437250559, 'sd': 0.02386701904348329, 'folds': '0.8455 0.8002 0.8221 0.8620 0.8431'}
{'scheme': 'healpix_wgs84_d7', 'family': 'HEALPix, WGS84', 'depth': 7, 'block_km': 50.9, 'n_blocks': 443, 'mean_accuracy': 0.8640413212264771, 'sd': 0.026135875843856918, 'folds': '0.8915 0.8360 0.8672 0.8385 0.8870'}
{'scheme': 'healpix_sphere_d7', 'family': 'HEALPix, sphere', 'depth': 7, 'block_km': 50.9, 'n_blocks': 444, 'mean_accuracy': 0.8620476378470852, 'sd': 0.01639330104494262, 'folds': '0.8787 0.8670 0.8605 0.8690 0.8351'}
{'scheme': 'latlon_d7', 'family': 'lat/lon squares', 'depth': 7, 'block_km': 50.9, 'n_blocks': 444, 'mean_accuracy': 0.8618568232662194, 'sd': 0.031972416643230264, 'folds': '0.8923 0.8987 0.8270 0.8397 0.8516'}
{'scheme': 'latlon_shifted_d7', 'family': 'lat/lon squares, shifted half a block', 'depth': 7, 'block_km': 50.9, 'n_blocks': 439, 'mean_accuracy': 0.862988551125148, 'sd': 0.011464193866177719, 'folds': '0.8663 0.8699 0.8641 0.8716 0.8432'}
{'scheme': 'healpix_wgs84_d8', 'family': 'HEALPix, WGS84', 'depth': 8, 'block_km': 25.5, 'n_blocks': 1441, 'mean_accuracy': 0.8685550730359258, 'sd': 0.01699018727589654, 'folds': '0.8621 0.8765 0.8563 0.8945 0.8535'}
{'scheme': 'healpix_sphere_d8', 'family': 'HEALPix, sphere', 'depth': 8, 'block_km': 25.5, 'n_blocks': 1443, 'mean_accuracy': 0.8653046453480719, 'sd': 0.013419580907581732, 'folds': '0.8779 0.8453 0.8617 0.8775 0.8641'}
{'scheme': 'latlon_d8', 'family': 'lat/lon squares', 'depth': 8, 'block_km': 25.5, 'n_blocks': 1440, 'mean_accuracy': 0.8679102513488617, 'sd': 0.008926050669580713, 'folds': '0.8662 0.8780 0.8546 0.8669 0.8739'}
{'scheme': 'latlon_shifted_d8', 'family': 'lat/lon squares, shifted half a block', 'depth': 8, 'block_km': 25.5, 'n_blocks': 1448, 'mean_accuracy': 0.8680352677983946, 'sd': 0.009272209306422098, 'folds': '0.8768 0.8595 0.8575 0.8772 0.8692'}

Same block size, different grids

random CV: 0.8866
family          HEALPix, WGS84  HEALPix, sphere  lat/lon squares  lat/lon squares, shifted half a block  max - min
depth block_km                                                                                                    
6.0   101.9             0.8538           0.8531           0.8545                                 0.8346     0.0199
7.0   50.9              0.8640           0.8620           0.8619                                 0.8630     0.0022
8.0   25.5              0.8686           0.8653           0.8679                                 0.8680     0.0033