MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / mean_defined

Function mean_defined

experiments/benchmark/evaluate_simulation_metrics.py:115–117  ·  view source on GitHub ↗
(values: List[Any])

Source from the content-addressed store, hash-verified

113
114
115def mean_defined(values: List[Any]) -> float:
116 defined = [float(value) for value in values if value is not None]
117 return mean(defined)
118
119
120def evaluate_episode(rows: List[Dict[str, Any]], ks: List[int]) -> Dict[str, Any]:

Callers 1

aggregate_metricsFunction · 0.70

Calls 1

meanFunction · 0.70

Tested by

no test coverage detected