Skip to main content

graph_boost

Function graph_boost 

Source
pub fn graph_boost(
    fused: &[usize],
    adjacency: &BTreeMap<usize, BTreeSet<usize>>,
) -> Vec<usize>
Expand description

Re-rank a fused ranking with a structural neighbor lift in rank space: a document related to one of the fused top-GRAPH_TOP_M documents is treated as ranked GRAPH_RANK_PENALTY behind its best benefactor. It can overtake unrelated mid-ranked documents but never the benefactor itself.