What it does
- <code>etl-trees</code> converter: convert, compile, inspect, verify
- Load with no copy and no allocation, with optional full verification
- Feature name checking
- Exact TreeSHAP contributions
- Scalar and AVX2 paths, per row and in batches, with identical bits
- Compiled mode (generated C++)
Measured
- Parity on 8 real models, 10,000 rows each: margins within 1e-6, and bit-identical on XGBoost
- Trusted load of 100 MB: 0.002 ms. Size: about 38 KB of inference code
- One prediction with 500 trees: 12 to 14 µs with AVX2. Target of 50 ns not met (the memory floor is 4 to 5 µs)
- Full verification of a 100 MB model: about 13 ms. Target of 5 ms not met
- Batch prediction: 1.5x to 1.65x faster per row than one at a time. Target of 4x not met
- Compiled mode: 2.7x slower than the AVX2 interpreter. Target of 2x faster not met
Known limits
- Does not train. Compiled mode is slower than AVX2. Loading 100 MB with full verification takes about 13 ms
This module has no guide yet: start with the summary above and the reference in the tabs.