+
    ¯ kÙ  ã                   ó   € R t ^ RItR tR tR# )zIDefer geometrically similar cross-model hypotheses without deleting them.Nc                 ó¸   € \        \        P                  ! W,          4      4      p\        \        P                  ! W,          4      4      q3'       d	   W#,          # R # )ç        )ÚintÚnpÚcount_nonzero)ÚaÚbÚinterÚunions   &&  ÚL/home/mchadwick/src/ansp/diatom-research/diatom_pilot/demote_alternatives.pyÚ_iour      s?   € Ü
Œ2×Ò˜A�CÓ Ó!€¬¬B×,<Ò,<¸Q½SÓ,AÓ(B %ÖY^È%Í+ÐCfÐdfÐCfó    c                óX  € \         P                  ! V4      '       d   ^ Tu;8  d   ^8:  g   M \        R4      h\        4       pRp. p. p. pV  EFÐ  p\	        V\
        4      '       dw   \	        VP                  R4      \        4      '       dR   VR,          '       dC   VR,          V9   g5   \	        VP                  R4      \        4      '       d   VR,          '       g   \        R4      hVP                  R4      p\	        V\         P                  4      '       dF   VP                  ^8w  g5   VP                  \         P                  8w  g   Ve   VP                  V8w  d   \        R4      hVP                  q2P                  VR,          4       Rp	Rp
V F7  pVR,          VR,          8w  g   K  \        W‹R,          4      pWÁ8¼  g   K4  Tqœp
 M	  V	f   VP                  V4       EK˜  VP                  V4       VP                  R	VR,          R
V	R,          RV
RR/4       EKÓ  	  WE,           V3# )a)  Stable two-tier order plus direct deferral links, never identity labels.

Candidate is deferred if it has IoU >= threshold with the first earlier
nondeferred candidate from a different source. Within-tier order follows
input order. Deferred candidates stay in the output; all input masks survive.
zInvalid thresholdNÚidÚsourcezInvalid candidateÚmaskzInvalid maskr   Ú	candidateÚanchorÚiouÚ	semanticsÚranking_deferral_not_identity)r   ÚisfiniteÚ
ValueErrorÚsetÚ
isinstanceÚdictÚgetÚstrÚndarrayÚndimÚdtypeÚbool_ÚshapeÚaddr   Úappend)ÚitemsÚ	thresholdÚidsr"   ÚprimaryÚdeferredÚlinksÚcÚmr   ÚvalueÚpriorÚscores   &&           r   Údefer_cross_modelr0      sþ  € ô 	�Š�I×Ò a¨	¦n°1¦n¼:ÐFYÓ;ZÐ5ZÜƒU€�ˆ5˜b�g¨" °2¨UÜ
€QÜ	�A”d×	Ò	¤:¨a¯e©e°D«k¼#×#>Ò#>ÀaÈÇgÄgÐQRÐSWÕQXÐ\_ÔQ_ÔgqÐrs×rwÑrwð  yAó  sBô  CF÷  hGò  hGð  OPð  QY÷  OZô  OZô  akð  ló  a@ð  [@Ø‡E�Eˆ&ƒM€!Ü	�A”b—j‘j×	!Ò	! Q§V¡V¨Q¤Y°!·'±'¼2¿8¹8Ô2CÈÒHYÐ^_×^eÑ^eÐglÔ^lÔt~ð  @Nó  uOð  oOØ	�‰€%—‘˜˜$�Ô ¨ °2¨UÛ€eØˆ…k�5˜•?Ö"Ü
ˆq�v•Ó
€EØÖ˜u˜ U±ñ ð ‚^�G—N‘N 1×%à‡?�?�1Ô�e—l‘l K°°$µ¸ÀÈÅÈeÐTYÐZeð  gFð  $G÷  Hñ ð 	Õ˜ÐÐr   )Ú__doc__Únumpyr   r   r0   © r   r   Ú<module>r4      s   ðÙ OÛ ògôr   