Card: say how the test error is computed and how to load the checkpoint
Browse files
README.md
CHANGED
|
@@ -58,13 +58,16 @@ baseline curve: the window's Watterson estimate of log10 Ne plus a fixed offset
|
|
| 58 |
3 × 10⁻⁴, cosine decay to 5% of it over the 12 epochs, weight decay 10⁻⁴, gradient-norm
|
| 59 |
clipping at 1, one update per 32 windows. The last epoch had the lowest validation error, and
|
| 60 |
its checkpoint is `final/checkpoint.pt`.
|
| 61 |
-
- **Test error.**
|
|
|
|
| 62 |
|
| 63 |
## Running it
|
| 64 |
|
| 65 |
The network reads inputs built by the NeCast code (summary statistics, PSMC+ posteriors and the
|
| 66 |
site encoder's input), and its checkpoint is loaded by that code. The code is being prepared for
|
| 67 |
-
release; its link will be added here.
|
|
|
|
|
|
|
| 68 |
window in the paper are in `Larrivhan/NeCast-simulations`, `Larrivhan/NeCast-benchmark` and
|
| 69 |
`Larrivhan/NeCast-1000G`.
|
| 70 |
|
|
|
|
| 58 |
3 × 10⁻⁴, cosine decay to 5% of it over the 12 epochs, weight decay 10⁻⁴, gradient-norm
|
| 59 |
clipping at 1, one update per 32 windows. The last epoch had the lowest validation error, and
|
| 60 |
its checkpoint is `final/checkpoint.pt`.
|
| 61 |
+
- **Test error.** 0.287: the root mean squared error of log10 Ne over all 64 intervals of the
|
| 62 |
+
500 test windows taken together, from `final/test_predictions.npz`.
|
| 63 |
|
| 64 |
## Running it
|
| 65 |
|
| 66 |
The network reads inputs built by the NeCast code (summary statistics, PSMC+ posteriors and the
|
| 67 |
site encoder's input), and its checkpoint is loaded by that code. The code is being prepared for
|
| 68 |
+
release; its link will be added here. `final/checkpoint.pt` is a plain PyTorch file:
|
| 69 |
+
`torch.load(path, map_location="cpu", weights_only=True)` returns a dictionary whose
|
| 70 |
+
`state_dict` holds the weights. The inputs the network read for every simulated and real
|
| 71 |
window in the paper are in `Larrivhan/NeCast-simulations`, `Larrivhan/NeCast-benchmark` and
|
| 72 |
`Larrivhan/NeCast-1000G`.
|
| 73 |
|