code wiki / _hdl_build / nx_ltr.nx

nx_ltr.nx

buildroot/runtime/_hdl_build/nx_ltr.nx

1740 B36 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_ltr.nx -- R-LTR of the onsite-search S-class ladder: SOVEREIGN learning-to-rank (LIBRARY). Learn a ranking function that COMBINES features (BM25 + vector cosine + click-CTR) from labeled data, instead of trusting any single signal -- the LTR idea (cited srch_ltr.raw). This is the CLASSICAL LINEAR model trained by a pairwise perceptron (Lloyd/Rosenblatt): for each (relevant, irrelevant) pair, if the model scores them wrong, nudge the weights toward the relevant one. Integer, deterministic, no-float, no external weights. HONEST SCOPE: linear LTR; DEEP-NEURAL LTR (a trained net) is the weight-gated extension -- the same frontier as the semantic model. exports: vr_ltr_score, vr_ltr_train. license_tier: ORIGINAL

dependencies 1 imports · 1 importers

nx_syscalls.nx nx_ltr.nx nx_ltr_gate.nx

imports: nx_syscalls.nx

imported by: nx_ltr_gate.nx

structs

none

consts

none

functions

12func vr_ltr_score(w: *i64, feat: *i64, F: i64) -> i64
called by 2: vr_ltr_trainmain
20func vr_ltr_train(w: *i64, F: i64, rel: *i64, irr: *i64, npairs: i64, iters: i64) -> i64
called by 1: main calls 1: vr_ltr_score