Centre a data matrix feature-wise: subtract each column's mean from that column.
Implement solve(X).
Returns. Return a float NumPy array of the same shape in which every column has mean 0.
Example 1
Input:
solve([[1.0, 10.0], [3.0, 20.0], [5.0, 30.0]])
Output:
[[-2.0, -10.0], [0.0, 0.0], [2.0, 10.0]]
Example 2
Input:
solve([[4.0, 4.0]])
Output:
[[0.0, 0.0]]
No results yet
Run your code to check it against the examples, or submit to run every test.