MCPcopy Create free account
hub / github.com/CheckPointSW/Karta / areNeighboursSafe

Function areNeighboursSafe

src/config/utils.py:320–326  ·  view source on GitHub ↗

Check if the neighbour score is stable enough to be used for generating candidates. Return Value: True iff picking neighbour candidates is safe

()

Source from the content-addressed store, hash-verified

318 return LOCATION_BOOST_SCORE * ratio
319
320def areNeighboursSafe():
321 """Check if the neighbour score is stable enough to be used for generating candidates.
322
323 Return Value:
324 True iff picking neighbour candidates is safe
325 """
326 return LOCATION_BOOST_SCORE * LOCATION_BOOST_LOW_THRESHOLD <= getNeighbourScore()
327
328###################
329## Const Scoring ##

Callers 1

attemptMatchesMethod · 0.85

Calls 1

getNeighbourScoreFunction · 0.85

Tested by

no test coverage detected