(feature_names: Sequence[str], per_feature_values: Sequence[Sequence[float]])
| 244 | if abs(factor) < _EPS: |
| 245 | continue |
| 246 | for j in range(col, n + 1): |
| 247 | aug[r][j] -= factor * aug[col][j] |
| 248 | |
| 249 | return [aug[i][n] for i in range(n)] |
| 250 | |
| 251 | |
| 252 | def _penalized_log_loss( |
| 253 | design: Sequence[Sequence[float]], |
| 254 | y: Sequence[float], |
| 255 | sw: Sequence[float], |
| 256 | beta: Sequence[float], |
| 257 | ridge: float, |
| 258 | ) -> float: |
| 259 | loss = 0.0 |
| 260 | for row, yy, w in zip(design, y, sw): |
no test coverage detected