1
票
index 2 is out of bounds for axis 1 with size 2の対処方法
Pythonのインデックスは(matlabと違って)0始まりなので、
users_r[:,1],users_r[:,2]
を
users_r[:,0],users_r[:,1]
に直して見てください。
Only top scored, non community-wiki answers of a minimum length are eligible