7 for i in range(m):
8 idx = record[i:] != 0
----> 9 rating_mean[i] = np.mean(rating[i,idx])
10 rating_norm[i,idx] -= rating_mean[i]
11 return rating_norm,rating_mean
IndexError: too many indices for array: array is 2-dimensional, but 3 were indexed
8 idx = record[i:] != 0
----> 9 rating_mean[i] = np.mean(rating[i,idx])
10 rating_norm[i,idx] -= rating_mean[i]
11 return rating_norm,rating_mean
IndexError: too many indices for array: array is 2-dimensional, but 3 were indexed
2021-05-13
tensorflowV2 对api有一些改进
adamOptimizer -> https://github.com/tensorflow/tensorflow/issues/31502
random_noraml -> uniform
adamOptimizer -> https://github.com/tensorflow/tensorflow/issues/31502
random_noraml -> uniform
2020-01-13