factor_agent.gate.graph.Graph.ranking#

Graph.ranking()[source]#

Return the SHA-256 of the canonical graph up to what keeps or reverses its cross-sectional ranking.

A rank, a constant offset and a nonzero scale at the root, a negative one included, do not change which stocks the factor tells apart, so x, -x and Rank(x) * 3 + 1 share it.