(y: Sequence[float], n_rows: int)
| 31 | |
| 32 | |
| 33 | def _as_vector(y: Sequence[float], n_rows: int) -> list[float]: |
| 34 | out = [float(v) for v in y] |
| 35 | if len(out) != n_rows: |
| 36 | raise ValueError(f"y/X length mismatch: {len(out)} vs {n_rows}") |
| 37 | return out |
| 38 | |
| 39 | |
| 40 | def _feature_names(n_features: int, feature_names: Sequence[str] | None) -> list[str]: |
no outgoing calls
no test coverage detected