Open Fengmoon93 opened 3 years ago
Hi,
That's a good question. Point in polygon score is likely to sort the lane sequences such that similar lane sequences will be nearby in the order. Randomized tie-breaker helps in complementing those with diverse lane sequences. For eg. Consider an actor approaching an intersection. There are multiple straight through lane sequences because of the branching at the next intersection. If we have to select 3 lane sequences, we'd prefer left, right and straight ones. The point in polygon score will not be able to account for the overlap in the straight-through ones. Randomized tie-breaker on top of point in polygon will improve the chances of choosing our preferred 3 lane sequences.
thanks for sharing.
why using the randomized_tiebreaker in the function? sort by point_in_polygon_scores first and then sort by the random value?