Scale each feature (column) of a matrix into [0,1] using that column's minimum and maximum.
Implement solve(X).
Returns. Return a NumPy array of the same shape. A constant column has no range, so it maps to all zeros.
Example 1
Input:
solve([[1.0, 10.0], [2.0, 20.0], [3.0, 30.0]])
Output:
[[0.0, 0.0], [0.5, 0.5], [1.0, 1.0]]
Example 2
Input:
solve([[5.0], [5.0]])
Output:
[[0.0], [0.0]]
No results yet
Run your code to check it against the examples, or submit to run every test.