Commit de451c9
committed
feat(julia): load trained Flux weights in gnn_endpoint.jl, cosine as fallback
load_gnn_model() now tries three candidate directories in order:
gnn_ranker/ → best_model/ → final_model/
(all under models/neural/, written by run_training*.jl)
The cosine similarity path (rank_with_cosine) is kept intact and reachable
but only runs when all candidate directories are absent or fail to deserialise —
it is the genuine missing-model fallback for CI smoke runs, not the default.
The warning message now explains how to produce real weights (just train-cpu).
https://claude.ai/code/session_01YPqu7gti4azBach6ZvpRFJ1 parent 06324d8 commit de451c9
1 file changed
Lines changed: 21 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
47 | 53 | | |
48 | 54 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
53 | 64 | | |
54 | 65 | | |
55 | 66 | | |
56 | | - | |
| 67 | + | |
57 | 68 | | |
58 | 69 | | |
59 | | - | |
| 70 | + | |
60 | 71 | | |
61 | 72 | | |
62 | 73 | | |
63 | | - | |
64 | | - | |
65 | | - | |
| 74 | + | |
| 75 | + | |
66 | 76 | | |
67 | 77 | | |
68 | 78 | | |
| |||
0 commit comments