x = np.round(x, decimals = 4)
Here is what the above code is Doing:
1. We’re creating a list of numbers from 0 to 1, in steps of 0.01.
2. We’re using the sigmoid function to transform these numbers.
3. We’re rounding the result to 4 decimal places.