When I was running the code today, the following line of code reported an error:
X_train_r[:,: ,0]=X_train[:,0:6000]
TypeError: unhashable type: 'slice
I don't understand what it means, but the solution is as follows:
X_train_r[:,: ,0]=X_train.values[:,0:6000]