| 74 | } |
| 75 | |
| 76 | bool vector_is_finite(const std::vector<double>& values) { |
| 77 | return std::all_of(values.begin(), values.end(), [](double value) { |
| 78 | return std::isfinite(value); |
| 79 | }); |
| 80 | } |
| 81 | |
| 82 | void validate_metric_weights( |
| 83 | const std::vector<double>& metric_weights, |