MCPcopy Create free account
hub / github.com/MotrixLab/ViMoGen / summarize_scores

Function summarize_scores

mbench/motion_quality.py:115–125  ·  view source on GitHub ↗

Return mean/std/count summary for a list of scalar values.

(values)

Source from the content-addressed store, hash-verified

113
114
115def summarize_scores(values):
116 """Return mean/std/count summary for a list of scalar values."""
117 if not values:
118 return {"mean": 0.0, "std": 0.0, "num_samples": 0}
119 tensor = torch.tensor(values, dtype=torch.float32)
120 std = tensor.std(unbiased=False).item() if tensor.numel() > 1 else 0.0
121 return {
122 "mean": tensor.mean().item(),
123 "std": std,
124 "num_samples": tensor.numel(),
125 }
126
127def compute_jitter_degree(full_info_path: str, device: str, **kwargs):
128 """

Callers 5

compute_jitter_degreeFunction · 0.70
compute_foot_floatingFunction · 0.70
compute_foot_slidingFunction · 0.70
compute_dynamic_degreeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected