There is an numpy calculation process as below, which has been approved correctly, but I don't understand the process clearly and would like to ask for help. The steps as following:
- There is user_item_train matrix as below which created through unstack:

- There is a test data index list as test_idx as below:

- Below code: look for the user_id which are in test_idx from train dataset, and return boolen values

- There is u_train dataset as below which generated through np.linalg.svd(user_item_train,full_matrices=False):

- I don't understand this step:

May I ask for your help to explain it a bit?
Thanks.