NumPy allowed · plain Python earns 10 bonus points
Computed matrix × vector transformation
Compute numerically stable softmax probabilities across rows of a 2D matrix of logits.
Implement vectorized_softmax(scores) to compute row-wise softmax probabilities. For each row, subtract the row maximum before exponentiating to prevent numerical overflow, then divide by the row exponential sum. Round each probability to 4 decimal places.
vectorized_softmax(scores: list[list[float]]) -> list[list[float]]