Upload README.md
Browse files1234567891011121314---title: NEB TESS classifiercolorFrom: greencolorTo: graysdk: staticpinned: falselicense: apache-2.0short_description: TESS exoplanet signal classifier, 4-bit weights, in browser---The TESS model of the NEB chain, at block 15,899, on 1,860 held-out TESS signals. The page runs the integer forwardpass in JavaScript; nothing leaves your browser. Weights and details: `NeuralEngineByte/neb-chain-models`.Fonts: JetBrains Mono and Inter, SIL Open Font License (see `fonts/`).123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102---license: apache-2.0tags:- astronomy- exoplanets- tess- kepler- light-curves- integer-quantizationdatasets:- NeuralEngineByte/neb-tess-test---# NEB chain models: Kepler and TESS signal classifiersTwo small convolutional networks with 4-bit integer weights. The miners of the NEB proof-of-work chain train them: eachmining attempt is one training step on 16 samples, and the chain keeps the result. These files are a snapshot of bothmodels at one block.| file | chain slot | data it trains on | answers || --- | --- | --- | --- || `tess.bin` | 1, `tess` | TESS signals from the QLP light curves | 1 eclipse, 0 junk || `kepler-v2.bin` | 0, `kepler-v2` | Kepler DR24 transit signals | 1 planet candidate, 0 false positive |Snapshot: block 15,899 (block id `9ca17d22c80b4c8c5e22eff093f22240a49de76f4e8b72c31d3f51f8389c5ddb`). `meta.json` holdsthe weights hash of each model. Any NEB node returns the same values with the RPC call `getmodel [slot]`.## Try itThe Space `NeuralEngineByte/neb-tess-classifier` runs the TESS model in the browser on held-out test signals.## ArchitectureKEP1, from `spec/nebhash-v2.md` (section 3.1) in the NEB repository. The input is 784 values from 0 to 7: a global viewof the folded light curve (583 values) and a local view around the event (201 values). Each value is the depth of thedip below the median.| layer | input | operation | output || --- | --- | --- | --- || 1 | global view, 1 x 583 | conv1d, 8 filters, kernel 5; max pool 4 | 8 x 145 || 2 | 8 x 145 | conv1d, 16 filters, kernel 5; max pool 4 | 16 x 36 || 3 | local view, 1 x 201 | conv1d, 8 filters, kernel 5; max pool 4 | 8 x 50 || 4 | 8 x 50 | conv1d, 16 filters, kernel 5; max pool 4 | 16 x 12 || 5 | layers 2 and 4, 768 | linear | 32 || 6 | 32 | linear | 2 |26,000 weights from -8 to 7, no bias. Every layer sums in int32, applies a rounding right shift, then clips to -8..7.There is no floating point, so every correct implementation gives the same bits on any hardware.## Weight format13,000 bytes per model. Each byte holds two signed 4-bit weights, low nibble first, in layer order and row-major orderinside each tensor. The weights hash is `BLAKE3("neb-model-weights" || packed weights)`.`neb-model.js` unpacks the weights and runs the forward pass. The class is the first maximum of the two raw output sums.## Results on held-out TESS signals1,860 TESS signals that the chain never trained on (dataset `NeuralEngineByte/neb-tess-test`): 250 eclipses and 1,610 junk.TESS model, block 15,899:| measure | value || --- | --- || eclipses found | 217 of 250 (86.8%) || "eclipse" answers that are eclipses | 217 of 267 (81.3%) || right answers | 1,777 of 1,860 (95.5%) || always answering "junk" | 1,610 of 1,860 (86.6%) |The JavaScript forward pass and the C reference of the NEB repository (`neb2_model_predict` in `pow/ref/nebhash2.c`)give the same answer on all 1,860 signals, for both models.The Kepler model has no held-out score here.## Limits- The weights change with every block. The numbers above hold for block 15,899 only.- The TESS labels come from people who looked at the signals (Astronet-Triage-v2). Signals that the authors marked as acontact binary, a single transit or unsure are not in the data.- The test signals were processed the same way as the training signals. The score says nothing about light curvesprepared another way.- The TESS model learned on stars brighter than T = 13.6. Two tests on fainter stars, with TGLC light curves(Han & Brandt 2023). A flipped light curve holds no eclipse, so it serves as the control.- 100 known planets from T = 13.5 to 15.6 (TOI disposition CP or KP in the NASA Exoplanet Archive), up to threesectors each between sectors 1 and 55: 244 light curves hold at least two transits. At the catalog period, themodel called 90 of them an eclipse. The share follows how clearly the transit stands out of the noise: 70 of 80with an in-transit signal-to-noise ratio of 10 or more, 17 of 54 between 5 and 10, 3 of 110 below 5. On the 261flipped light curves, it called 9 an eclipse (weights of block 15,899).- 1,977 stars of sector 40 (median T = 15.2), blind search: the model called 319 dips of the flipped light curves aneclipse, against 56 in the real ones (`science/tess-faint` in the NEB repository, weights of block 11,457).A transit that stands out of the noise gets the right answer on a faint star. In a blind search of faint stars, themodel does not sort.- An answer is a hint for a human. It does not confirm a planet.## Data- TESS: Astronet-Triage-v2, Tey et al. 2023, AJ 165, 95, CC BY 4.0, https://zenodo.org/records/7411579.- Kepler: the Q1-Q17 DR24 TCE table of the NASA Exoplanet Archive.## CodeThe chain, the specification and the reference code: https://github.com/SilasEigen/neb (Apache-2.0).
README.md+97-9