code wiki / _hdl_build / nx_dr_fuse_cli.nx

nx_dr_fuse_cli.nx

buildroot/runtime/_hdl_build/nx_dr_fuse_cli.nx

5097 B95 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind tooltopic dr
docsdependenciesstructsconstsfunctions

about

nx_dr_fuse_cli.nx -- fit the learned combiner on REAL DRBench labels and report HELD-OUT performance against every individual signal (DR-12). nx_dr_fuse <feats.csv> [train_percent] feats.csv = flat comma-separated ints, 5 per candidate: task,label,lexical,semantic,semantic_idf Weights are fitted ONLY on the first train_percent of tasks and every reported number is computed ONLY on the DISJOINT remainder -- fitting and scoring on the same tasks would be rigged, so the split is explicit and reported. license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 3 imports · 0 importers

nx_dr_fuse.nx nx_itoa_lib.nx nx_syscalls.nx nx_dr_fuse_cli.nx

imports: nx_dr_fuse.nxnx_itoa_lib.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main fc_puts sys_write fc_key fc_q sys_mmap sys_write ↻ fc_puts ↻ fc_q ↻ sys_exit sys_mmap ↻ fc_parse sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close fu_task fu_fit sys_mmap ↻ fu_pairacc fu_task ↻ fu_label fu_score fc_num nxi_out nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap fu_recall fu_task ↻ fu_label ↻ fu_score ↻ fc_row fc_puts ↻ fc_key ↻ fc_num ↻

structs

none

consts

12const K_MAGIC_1000000: i64 = 1000000
13const K_MAGIC_262144: i64 = 262144

functions

15func fc_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 3: fc_keyfc_rowmain calls 1: sys_write
16func fc_q() -> i64 { let b: *u8 = sys_mmap(1); b[0] = 34 as u8; sys_write(1, b, 1); return 0 }
called by 2: fc_keymain calls 2: sys_mmapsys_write
17func fc_key(name: *u8) -> i64 { fc_q(); fc_puts(name); fc_q(); fc_puts(":" as *u8); return 0 }
called by 2: fc_rowmain calls 2: fc_qfc_puts
22func fc_num(v: i64) -> i64 { nxi_out(v); return 0 }
called by 2: fc_rowmain calls 1: nxi_out
24func fc_parse(buf: *u8, len: i64, out: *i64, maxn: i64) -> i64
called by 1: main
36func fc_row(name: *u8, r: *i64, n: i64, w: *i64, lo: i64) -> i64
called by 1: main calls 4: fc_putsfc_keyfc_numfu_recall
41func main(argc: i64, argv: *i64) -> i64