Assume the following 2d numpy is given:
myNP = np.array([[5., 2., 1.],
[3., 3., 3.],
[3., 3., 3.]])
One has to find the weight of each point in each row in relation to the sum of the row.
in reference to the example above the expected result need to be:
([[0.625, 0.25 , 0.125],
[0.333, 0.333, 0.333],
[0.333, 0.333, 0.333]])