MCPcopy
hub / github.com/showlab/Code2Video / _safe_mean

Function _safe_mean

src/eval_TQ.py:235–236  ·  view source on GitHub ↗
(xs)

Source from the content-addressed store, hash-verified

233 post_video_scores = [r.post_video_score for r in results]
234
235 def _safe_mean(xs):
236 return float(np.mean(xs)) if len(xs) > 0 else float("nan")
237
238 report += "DETAILED RESULTS BY CONCEPT:\n"
239

Callers 1

format_evaluation_reportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected