(y: Sequence[float], n_rows: int)
| 31 | if not rows: |
| 32 | raise ValueError("X cannot be empty") |
| 33 | width = len(rows[0]) |
| 34 | if width == 0: |
| 35 | raise ValueError("X must contain at least one feature") |
| 36 | if any(len(r) != width for r in rows): |
| 37 | raise ValueError("X must be rectangular") |
| 38 | return rows |
| 39 | |
| 40 |
no outgoing calls
no test coverage detected