NOVA-UAC · v0.5.1
December engineering deep dive
Follow a prediction from standardized features through three model branches, then work through the equations used to initialize, train, and evaluate them.
Walk a prediction through the model
Move the sliders to vary the three illustrative branch outputs. The green path is the direct linear contribution, blue is the recurrent task head, and violet is the cross-interaction contribution. This teaching model illustrates the summation and rescaling with chosen values.
Standardized sum:
Prediction in original units:
Illustrative interval:
Target mean = 20, scale = 4, calibrated margin assumed = 1.20 target units.
Formulas, derivations, and worked answers
1. Standardization and real-unit predictions
Question. A sensor reads 14. Its training mean and scale are 10 and 2. If the model returns 1.25 in standardized target space and the target mean and scale are 20 and 4, what does it predict?
- Center and scale the feature:
z = (x − μₓ) / σₓ = (14 − 10)/2 = 2. - Invert target standardization: multiplying
ŷ′ = (ŷ − μᵧ)/σᵧbyσᵧand addingμᵧgivesŷ = μᵧ + σᵧŷ′. - Substitute the values:
ŷ = 20 + 4 × 1.25 = 25target units.
Fit means, scales and categorical encoders on training data and reuse them at prediction time. Record the feature order. A constant feature needs an explicit scale policy to avoid dividing by zero.
2. Ridge warm-start for the direct highway
Question. For one centered feature X = [−1, 1]ᵀ, centered targets y = [−2, 2]ᵀ, and λ = 1, what initial slope does ridge give?
- Minimize
J(w) = ‖Xw − y‖² + λ‖w‖². - Differentiate:
∇J = 2Xᵀ(Xw − y) + 2λw. - Set the gradient to zero and rearrange:
(XᵀX + λI)w = Xᵀy. - Here
XᵀX = 2andXᵀy = 4, sow = 4/3 ≈ 1.333. The unregularized slope is 2. Centering handles the intercept in this example.
The direct path provides a linear component to the final sum. The release report describes keeping the ridge initialization when it improves validation.
3. Fourier features and the residual encoder
Question. What periodic features are produced by z = π/2 with frequency ω = 1 and phase b = 0?
- Compute
θ = ωz + b = π/2. - Compute
[sin θ, cos θ] = [1, 0]. - Combine the raw feature and periodic pair as
[z, sin θ, cos θ]before learned projection. A dimension-compatible skip adds a direct input contribution:encoder(z) = skip(z) + f(z).
The pair changes smoothly as the input changes. The learned projection decides how much of that signal informs the recurrent path.
4. Hamiltonian fusion and bounded sequence work
Question. Take H(q,p) = (q² + p²)/2, initial state (q,p) = (1,0), and step size ε = 0.2. What is one leapfrog step?
- Half kick:
p½ = p − (ε/2)q = −0.1. - Drift:
q₁ = q + εp½ = 0.98. - Second half kick:
p₁ = p½ − (ε/2)q₁ = −0.198.
A learned gate mixes the Hamiltonian contribution into the state update. This oscillator illustrates leapfrog. With fixed widths, memory capacity, and per-frame work bounded by C, processing N frames costs at most C × N work.
5. Bounded DCN-v2 cross and SwiGLU
Question. Let h₀ = c₀ = [2,3], let W swap the coordinates, and let b = 0. What does one bounded cross step produce?
Wc₀ = [3,2].tanh(Wc₀) ≈ [0.9951,0.9640].- Multiply elementwise by
h₀, then addc₀:c₁ ≈ [3.9901,5.8921].
Without saturation near zero, tanh(u) ≈ u and the cross term becomes approximately h₀ ⊙ Wc₀. This is where multiplicative interactions arise. The separate SwiGLU path forms SiLU(Wg h₀) ⊙ Wv h₀, projects it, adds the residual, and normalizes. If its scalar gate input is 0 and value input is 3, SiLU(0) × 3 = 0.
6. Hybrid loss and validation-gated L-BFGS
Question. For residual e = 3 and Huber threshold δ = 1, what is the reported 65/35 blend for one example?
- Huber is
e²/2when|e| ≤ δandδ(|e| − δ/2)otherwise. At the boundary both branches giveδ²/2, with matching slopes. - Here Huber equals
1 × (3 − 0.5) = 2.5, while squared error equals9. - Blend the two:
0.65 × 2.5 + 0.35 × 9 = 4.775. For a batch, average the per-example terms.
After AdamW, limited-memory BFGS uses recent parameter and gradient differences to approximate curvature. The report describes up to 25 output-branch iterations with strong-Wolfe line search, with the updated checkpoint kept only if validation improves.
7. A 90% split-conformal interval
Question. With 19 calibration rows, the 18th smallest absolute residual is 1.20. What interval surrounds a prediction of 24?
- Compute calibration scores
rᵢ = |yᵢ − ŷᵢ|on a calibration set separate from model fitting and tuning. - For
α = 0.10, the one-based rank isceil((n + 1)(1 − α)) = ceil(20 × 0.90) = 18. The extra rank correction comes from including the future example among then + 1exchangeable scores. - Use the score at that rank as the margin:
[24 − 1.20, 24 + 1.20] = [22.80, 25.20].
This is nominal marginal coverage under exchangeability. It does not imply 90% accuracy for a particular prediction. For time-series data, examine whether a time-respecting calibration strategy is appropriate. Conformal prediction reference.
8. Reading R², MAE, and percentage points
Question. Actual values are [2,4,6] and predictions are [3,4,5]. What are MAE and R²?
- The absolute errors are
[1,0,1], soMAE = (1+0+1)/3 = 0.667. - The target mean is 4. The residual sum of squares is 2, and the total sum of squares is
(2−4)²+(4−4)²+(6−4)² = 8. R² = 1 − SSE/SST = 1 − 2/8 = 0.75. An R² of 0.75 here describes variance explained relative to the mean baseline.
The nonlinear benchmark moved from 86.64% to 98.85% unseen R², a difference of 12.21 percentage points. The attachment gives MAE values of 1.2002 and 0.1103, about a 90.8% reduction. Comparability depends on the evaluation protocol.
Benchmark charts and detailed scores
These are project-reported measurements. The charts compare the reported nonlinear holdout and CPU latency ranges. Latency depends on the workload and hardware.
Headline results by version
| Version | Fitness (data.csv) | Physical Sensors | NIFTY Financial Services | Complex Nonlinear 3D | Overall reported range | CPU latency |
|---|---|---|---|---|---|---|
| v0.4.8 | 78.40% | 97.89% | 94.14% | 78.32% | 78.32% – 97.89% | ~3–5 ms |
| v0.4.9 | 81.93% (91.36% clean) | 97.89% | 94.14% | 78.32% | 78.32% – 97.89% | ~3–5 ms |
| v0.5.0 | 89.66% (92.35% clean) | 99.99% | 95.47% | 86.64% | 86.64% – 99.99% | 2.84–3.31 ms |
| v0.5.1 | 95.22% (96.87% train) | 99.99% | 96.38% | 98.85% | 95.22% – 99.99% | 3.38–6.68 ms |
The range is the lowest and highest headline result across the four datasets for each version. These project-reported percentages use different metrics and evaluation splits.
| Version | Calories MAE | Sensor R² / match | NIFTY R² / MAE | Nonlinear MAE |
|---|---|---|---|---|
| v0.4.8 | 69.79 | 97.66% / 97.89% | 93.35% / ₹765.13 crore | 1.4596 |
| v0.4.9 | 58.39 | 97.66% / 97.89% | 93.35% / ₹765.13 crore | 1.4596 |
| v0.5.0 | 40.34 | 99.99% / 99.99% | 93.29% / ₹762.11 crore | 1.2002 |
| v0.5.1 | 33.91 | 99.99% / 99.78% | 93.55% / ₹750.91 crore | 0.1103 |
Full-data R², training R², held-out R², and match scores measure different outcomes. The report does not define the match formula. See all four dataset charts.
Verify a dataset and its export
- Record the package version, hardware, feature schema, split identifiers, and scoring formulas. For sequential data, avoid training on information from after the forecast date.
- Check that uploaded CSV/TSV rows with blank or nonfinite values are handled as expected. The report records 169 → 164 fitness rows after removing five rows with missing targets.
- Compare the dashboard prediction, held-out score, and standalone ZIP prediction on the same inputs. Verify the weights’ SHA-256 using the export manifest and use bundles from trusted sources.
- Archive preprocessing metadata, the calibration set description, and the exported result. The engineering report records 28 Python and 7 Node.js tests passing.
Open the dashboard, API, and ZIP export instructions · See the files changed by release.