Publish 2026_W39_encoder
Browse files- README.md +4 -1
- agea_vol_pca.npy +1 -1
- checksums.json +13 -13
- confidence_model.pt +1 -1
- ephysatlas_model.json +13 -2
- example/expected_predictions.parquet +2 -2
- merfish_vol_pca.npy +1 -1
- preprocessing/channel_stats.npz +2 -2
- results/confidence_validation.json +5 -5
- results/test_r2.json +44 -44
- spatial_encoder.pt +1 -1
README.md
CHANGED
|
@@ -29,7 +29,10 @@ A published encoder is not the weights alone. `predict` cannot run without every
|
|
| 29 |
|
| 30 |
- `spatial_encoder.pt` -- the trained network.
|
| 31 |
- the context PCA volumes (`agea_vol_pca.npy`, `merfish_vol_pca.npy`) -- the anatomical context
|
| 32 |
-
it samples at each position
|
|
|
|
|
|
|
|
|
|
| 33 |
- `neighbor_bank.npz` -- the **neighbour bank**: the position, standardised feature vector and
|
| 34 |
insertion id of every training channel. At inference the model gathers the nearest recorded
|
| 35 |
channels from this bank and attends to them, so the bank *is* part of the model, the way the
|
|
|
|
| 29 |
|
| 30 |
- `spatial_encoder.pt` -- the trained network.
|
| 31 |
- the context PCA volumes (`agea_vol_pca.npy`, `merfish_vol_pca.npy`) -- the anatomical context
|
| 32 |
+
it samples at each position: principal components of the AGEA gene-expression volume and of the
|
| 33 |
+
MERFISH subclass cell-type densities, denoised with `iblatlas.genomics.merfish.denoise_volume`
|
| 34 |
+
(NaNs filled, Gaussian-smoothed, renormalised within the brain; see `config.context.sources`
|
| 35 |
+
in `ephysatlas_model.json`).
|
| 36 |
- `neighbor_bank.npz` -- the **neighbour bank**: the position, standardised feature vector and
|
| 37 |
insertion id of every training channel. At inference the model gathers the nearest recorded
|
| 38 |
channels from this bank and attends to them, so the bank *is* part of the model, the way the
|
agea_vol_pca.npy
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 31865328
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:648f676671127966e2df58bb3a9aa694a4ea1d35e246bd02689f9909ba34a28f
|
| 3 |
size 31865328
|
checksums.json
CHANGED
|
@@ -3,23 +3,23 @@
|
|
| 3 |
"files": [
|
| 4 |
{
|
| 5 |
"path": "agea_vol_pca.npy",
|
| 6 |
-
"hash": "
|
| 7 |
"bytes": 31865328
|
| 8 |
},
|
| 9 |
{
|
| 10 |
"path": "confidence_model.pt",
|
| 11 |
-
"hash": "
|
| 12 |
"bytes": 387569
|
| 13 |
},
|
| 14 |
{
|
| 15 |
"path": "ephysatlas_model.json",
|
| 16 |
-
"hash": "
|
| 17 |
-
"bytes":
|
| 18 |
},
|
| 19 |
{
|
| 20 |
"path": "example/expected_predictions.parquet",
|
| 21 |
-
"hash": "
|
| 22 |
-
"bytes":
|
| 23 |
},
|
| 24 |
{
|
| 25 |
"path": "example/features_sample.parquet",
|
|
@@ -28,7 +28,7 @@
|
|
| 28 |
},
|
| 29 |
{
|
| 30 |
"path": "merfish_vol_pca.npy",
|
| 31 |
-
"hash": "
|
| 32 |
"bytes": 31865328
|
| 33 |
},
|
| 34 |
{
|
|
@@ -38,22 +38,22 @@
|
|
| 38 |
},
|
| 39 |
{
|
| 40 |
"path": "preprocessing/channel_stats.npz",
|
| 41 |
-
"hash": "
|
| 42 |
-
"bytes":
|
| 43 |
},
|
| 44 |
{
|
| 45 |
"path": "results/confidence_validation.json",
|
| 46 |
-
"hash": "
|
| 47 |
"bytes": 291
|
| 48 |
},
|
| 49 |
{
|
| 50 |
"path": "results/test_r2.json",
|
| 51 |
-
"hash": "
|
| 52 |
-
"bytes":
|
| 53 |
},
|
| 54 |
{
|
| 55 |
"path": "spatial_encoder.pt",
|
| 56 |
-
"hash": "
|
| 57 |
"bytes": 4625417
|
| 58 |
},
|
| 59 |
{
|
|
|
|
| 3 |
"files": [
|
| 4 |
{
|
| 5 |
"path": "agea_vol_pca.npy",
|
| 6 |
+
"hash": "b710b6b26797e78bbc49762e80f2ae5ab6bb3896",
|
| 7 |
"bytes": 31865328
|
| 8 |
},
|
| 9 |
{
|
| 10 |
"path": "confidence_model.pt",
|
| 11 |
+
"hash": "7c5eed503a08c6d3afe5047702f0b3c961def869",
|
| 12 |
"bytes": 387569
|
| 13 |
},
|
| 14 |
{
|
| 15 |
"path": "ephysatlas_model.json",
|
| 16 |
+
"hash": "c854d99dd6a81a38ad8c5b5d234648e62f029031",
|
| 17 |
+
"bytes": 6992
|
| 18 |
},
|
| 19 |
{
|
| 20 |
"path": "example/expected_predictions.parquet",
|
| 21 |
+
"hash": "f3d23df86e52e720a223595884c6ea91ac578a6e",
|
| 22 |
+
"bytes": 155858
|
| 23 |
},
|
| 24 |
{
|
| 25 |
"path": "example/features_sample.parquet",
|
|
|
|
| 28 |
},
|
| 29 |
{
|
| 30 |
"path": "merfish_vol_pca.npy",
|
| 31 |
+
"hash": "c8fd5484d8c0619c5c542242c9ac99876db56892",
|
| 32 |
"bytes": 31865328
|
| 33 |
},
|
| 34 |
{
|
|
|
|
| 38 |
},
|
| 39 |
{
|
| 40 |
"path": "preprocessing/channel_stats.npz",
|
| 41 |
+
"hash": "122634168092c7bc5fea981960100e7902a5c857",
|
| 42 |
+
"bytes": 3384
|
| 43 |
},
|
| 44 |
{
|
| 45 |
"path": "results/confidence_validation.json",
|
| 46 |
+
"hash": "f04a224d8afa2f818b5c197b948497bd07c76b0d",
|
| 47 |
"bytes": 291
|
| 48 |
},
|
| 49 |
{
|
| 50 |
"path": "results/test_r2.json",
|
| 51 |
+
"hash": "d655cf0658a0bc7ffc31332c0347afd233adcd52",
|
| 52 |
+
"bytes": 2018
|
| 53 |
},
|
| 54 |
{
|
| 55 |
"path": "spatial_encoder.pt",
|
| 56 |
+
"hash": "7d1a1f6223eb0494dfb7fb1a218022a89dfb0ba9",
|
| 57 |
"bytes": 4625417
|
| 58 |
},
|
| 59 |
{
|
confidence_model.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 387569
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:61383c56e54c04d3d8e5b78f1d9e116a42352033199a8336b72212507144b253
|
| 3 |
size 387569
|
ephysatlas_model.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
| 9 |
"validation_size": 81,
|
| 10 |
"testing_size": 162,
|
| 11 |
"best_epoch": 3,
|
| 12 |
-
"mean_test_r2": 0.
|
| 13 |
},
|
| 14 |
"environment": {
|
| 15 |
"python": "3.11.9",
|
|
@@ -117,7 +117,18 @@
|
|
| 117 |
"context": {
|
| 118 |
"n_cell_pcs": 50,
|
| 119 |
"n_gene_pcs": 50,
|
| 120 |
-
"voxel_um": 200
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 121 |
},
|
| 122 |
"preprocessing": {
|
| 123 |
"clip_percentiles": [
|
|
|
|
| 9 |
"validation_size": 81,
|
| 10 |
"testing_size": 162,
|
| 11 |
"best_epoch": 3,
|
| 12 |
+
"mean_test_r2": 0.3942371606826782
|
| 13 |
},
|
| 14 |
"environment": {
|
| 15 |
"python": "3.11.9",
|
|
|
|
| 117 |
"context": {
|
| 118 |
"n_cell_pcs": 50,
|
| 119 |
"n_gene_pcs": 50,
|
| 120 |
+
"voxel_um": 200,
|
| 121 |
+
"sources": {
|
| 122 |
+
"merfish": {
|
| 123 |
+
"level": "subclass",
|
| 124 |
+
"volume": "iblatlas.genomics.merfish.denoise_volume",
|
| 125 |
+
"n_drop_non_neuronal": 0,
|
| 126 |
+
"sigma_voxels": 0.5
|
| 127 |
+
},
|
| 128 |
+
"agea": {
|
| 129 |
+
"volume": "iblatlas.genomics.agea.load(label=\"processed\")"
|
| 130 |
+
}
|
| 131 |
+
}
|
| 132 |
},
|
| 133 |
"preprocessing": {
|
| 134 |
"clip_percentiles": [
|
example/expected_predictions.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ff49e53f4cdb187d53edb32f24d47d11abe418f01f2f154873d07bcd53ae6e7a
|
| 3 |
+
size 155858
|
merfish_vol_pca.npy
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 31865328
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:95fcc9a5d829e0485c372e0ac9e3511acbebc89c56f6861e2ef8b4b6f34c5643
|
| 3 |
size 31865328
|
preprocessing/channel_stats.npz
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b0548b3e1872120a85b7ec0da03071fb24dafdf9d224932f25f179693ba0342e
|
| 3 |
+
size 3384
|
results/confidence_validation.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
| 1 |
{
|
| 2 |
"split": "validation (synthetic misalignments)",
|
| 3 |
-
"accuracy": 0.
|
| 4 |
"confusion_matrix": [
|
| 5 |
[
|
| 6 |
-
|
| 7 |
-
|
| 8 |
],
|
| 9 |
[
|
| 10 |
-
|
| 11 |
-
|
| 12 |
]
|
| 13 |
],
|
| 14 |
"classes": [
|
|
|
|
| 1 |
{
|
| 2 |
"split": "validation (synthetic misalignments)",
|
| 3 |
+
"accuracy": 0.7644595550411523,
|
| 4 |
"confusion_matrix": [
|
| 5 |
[
|
| 6 |
+
145775,
|
| 7 |
+
44430
|
| 8 |
],
|
| 9 |
[
|
| 10 |
+
14180,
|
| 11 |
+
44447
|
| 12 |
]
|
| 13 |
],
|
| 14 |
"classes": [
|
results/test_r2.json
CHANGED
|
@@ -1,50 +1,50 @@
|
|
| 1 |
{
|
| 2 |
"split": "test",
|
| 3 |
"n_test_insertions": 162,
|
| 4 |
-
"mean_r2": 0.
|
| 5 |
"per_feature": {
|
| 6 |
-
"rms_lf": 0.
|
| 7 |
-
"psd_delta": 0.
|
| 8 |
-
"psd_theta": 0.
|
| 9 |
-
"psd_alpha": 0.
|
| 10 |
-
"psd_beta": 0.
|
| 11 |
-
"psd_gamma": 0.
|
| 12 |
-
"psd_lfp": 0.
|
| 13 |
-
"rms_lf_csd_diff1": 0.
|
| 14 |
-
"psd_delta_csd_diff1": 0.
|
| 15 |
-
"psd_theta_csd_diff1": 0.
|
| 16 |
-
"psd_alpha_csd_diff1": 0.
|
| 17 |
-
"psd_beta_csd_diff1": 0.
|
| 18 |
-
"psd_gamma_csd_diff1": 0.
|
| 19 |
-
"psd_lfp_csd_diff1": 0.
|
| 20 |
-
"psd_residual_delta": 0.
|
| 21 |
-
"psd_residual_theta": 0.
|
| 22 |
-
"psd_residual_alpha": 0.
|
| 23 |
-
"psd_residual_beta": 0.
|
| 24 |
-
"psd_residual_gamma": 0.
|
| 25 |
-
"psd_residual_lfp": 0.
|
| 26 |
-
"aperiodic_offset": 0.
|
| 27 |
-
"aperiodic_exponent": 0.
|
| 28 |
-
"decay_fit_error": 0.
|
| 29 |
-
"decay_fit_r_squared": 0.
|
| 30 |
-
"decay_n_peaks": 0.
|
| 31 |
-
"cor_ratio": 0.
|
| 32 |
-
"rms_ap": 0.
|
| 33 |
-
"alpha_mean": 0.
|
| 34 |
-
"alpha_std": 0.
|
| 35 |
-
"spike_count": 0.
|
| 36 |
-
"depolarisation_slope": 0.
|
| 37 |
-
"polarity": 0.
|
| 38 |
-
"recovery_slope": 0.
|
| 39 |
-
"repolarisation_slope": 0.
|
| 40 |
-
"slowness_s_per_m": 0.
|
| 41 |
-
"slowness_s_per_m_std": 0.
|
| 42 |
-
"spatial_spread_um": 0.
|
| 43 |
-
"spatial_spread_um_std": 0.
|
| 44 |
-
"tip_val": 0.
|
| 45 |
-
"spike_width_secs": 0.
|
| 46 |
-
"predepolarisation_width_secs": 0.
|
| 47 |
-
"spike_amplitude": 0.
|
| 48 |
-
"peak_to_trough_ratio_log": 0.
|
| 49 |
}
|
| 50 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"split": "test",
|
| 3 |
"n_test_insertions": 162,
|
| 4 |
+
"mean_r2": 0.3942371606826782,
|
| 5 |
"per_feature": {
|
| 6 |
+
"rms_lf": 0.6550701260566711,
|
| 7 |
+
"psd_delta": 0.5976907014846802,
|
| 8 |
+
"psd_theta": 0.7105530500411987,
|
| 9 |
+
"psd_alpha": 0.7033395767211914,
|
| 10 |
+
"psd_beta": 0.6790828704833984,
|
| 11 |
+
"psd_gamma": 0.6526632308959961,
|
| 12 |
+
"psd_lfp": 0.6669749021530151,
|
| 13 |
+
"rms_lf_csd_diff1": 0.372251033782959,
|
| 14 |
+
"psd_delta_csd_diff1": 0.33365315198898315,
|
| 15 |
+
"psd_theta_csd_diff1": 0.4834861755371094,
|
| 16 |
+
"psd_alpha_csd_diff1": 0.47833847999572754,
|
| 17 |
+
"psd_beta_csd_diff1": 0.4298723340034485,
|
| 18 |
+
"psd_gamma_csd_diff1": 0.34356796741485596,
|
| 19 |
+
"psd_lfp_csd_diff1": 0.382626473903656,
|
| 20 |
+
"psd_residual_delta": 0.3934798240661621,
|
| 21 |
+
"psd_residual_theta": 0.4087831377983093,
|
| 22 |
+
"psd_residual_alpha": 0.36000263690948486,
|
| 23 |
+
"psd_residual_beta": 0.2635628581047058,
|
| 24 |
+
"psd_residual_gamma": 0.2118266224861145,
|
| 25 |
+
"psd_residual_lfp": 0.16072648763656616,
|
| 26 |
+
"aperiodic_offset": 0.6590027809143066,
|
| 27 |
+
"aperiodic_exponent": 0.38344305753707886,
|
| 28 |
+
"decay_fit_error": 0.2743866443634033,
|
| 29 |
+
"decay_fit_r_squared": 0.3550477623939514,
|
| 30 |
+
"decay_n_peaks": 0.09816223382949829,
|
| 31 |
+
"cor_ratio": 0.5910254716873169,
|
| 32 |
+
"rms_ap": 0.5826618671417236,
|
| 33 |
+
"alpha_mean": 0.38318175077438354,
|
| 34 |
+
"alpha_std": 0.3446558713912964,
|
| 35 |
+
"spike_count": 0.24994319677352905,
|
| 36 |
+
"depolarisation_slope": 0.41396862268447876,
|
| 37 |
+
"polarity": 0.24988126754760742,
|
| 38 |
+
"recovery_slope": 0.3518065810203552,
|
| 39 |
+
"repolarisation_slope": 0.3700753450393677,
|
| 40 |
+
"slowness_s_per_m": 0.0968065857887268,
|
| 41 |
+
"slowness_s_per_m_std": 0.4426867365837097,
|
| 42 |
+
"spatial_spread_um": 0.29377901554107666,
|
| 43 |
+
"spatial_spread_um_std": 0.14359837770462036,
|
| 44 |
+
"tip_val": 0.29089581966400146,
|
| 45 |
+
"spike_width_secs": 0.45722121000289917,
|
| 46 |
+
"predepolarisation_width_secs": 0.28831756114959717,
|
| 47 |
+
"spike_amplitude": 0.32823026180267334,
|
| 48 |
+
"peak_to_trough_ratio_log": 0.015869319438934326
|
| 49 |
}
|
| 50 |
}
|
spatial_encoder.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4625417
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0f8c9347db81656c1e2e4d7dde60758ee8e6f15bbf2f67a65477f8aa1d7621d0
|
| 3 |
size 4625417
|