I have this points ndarray.
In [141]: points
Out[141]:
array([[0, 1],
[2, 3],
[4, 5],
[6, 7]])
And I have this classifier that I classified the points into two classes
In [142]: i5
Out[142]: array([0, 0, 1, 1])
Note, the length of points and i5 are same.
I know that the two classes have these values.
In [143]: c
Out[143]:
array([[2, 3],
[4, 5]])
I want to assign the points to the values that I have classified. The final result that i expect is
In [141]: points
Out[141]:
array([[2, 3],
[2, 3],
[4, 5],
[4, 5]])
How can I mutate/change points based on c indexed on i5?