KarlQuant commited on
Commit
b7c4d87
·
verified ·
1 Parent(s): 2ad6d19

Update ranker_logging.py

Browse files
Files changed (1) hide show
  1. ranker_logging.py +11 -0
ranker_logging.py CHANGED
@@ -425,6 +425,17 @@ class RankerLogBridge:
425
  top_name,
426
  top_score
427
  )
 
 
 
 
 
 
 
 
 
 
 
428
 
429
  def log_event(self, level: LogLevel, category: EventCategory, message: str, asset: Optional[str] = None):
430
  """Generic event logging."""
 
425
  top_name,
426
  top_score
427
  )
428
+ # Cache full ranked list so get_stats() can expose it
429
+ self._last_rankings = [
430
+ {
431
+ "space_name": r.space_name if hasattr(r, 'space_name') else r.get('space_name', ''),
432
+ "score": r.final_priority if hasattr(r, 'final_priority') else r.get('final_priority', 0),
433
+ "rank": r.rank if hasattr(r, 'rank') else r.get('rank', 0),
434
+ "dominant_signal": r.dominant_signal if hasattr(r, 'dominant_signal') else r.get('dominant_signal', 'NEUTRAL'),
435
+ "epistemic_std": r.epistemic_std if hasattr(r, 'epistemic_std') else r.get('epistemic_std', 0.0),
436
+ }
437
+ for r in ranked
438
+ ]
439
 
440
  def log_event(self, level: LogLevel, category: EventCategory, message: str, asset: Optional[str] = None):
441
  """Generic event logging."""