Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it’s on-topic for Data Science Stack Exchange.
Closed 3 years ago.
I’m trying to do a majority voting of the predictions of two deep learning models.The shape of both y_pred and vgg16_y_pred are (200,1) and type ‘int64’.
max_voting_pred = np.array() for i in range(0,len(X_test)): max_voting_pred = np.append(max_voting_pred, statistics.mode([y_pred[i], vgg16_y_pred[i]]))
I run into the following error:
TypeError: unhashable type: 'numpy.ndarray'