GridSearchCV/RandomizedSearchCV with LSTM
问题 I am stuck on the trying to tune hyperparameters for LSTM via RandomizedSearchCV. My code is below: X_train = X_train.reshape((X_train.shape[0], 1, X_train.shape[1])) X_test = X_test.reshape((X_test.shape[0], 1, X_test.shape[1])) print(X_train.shape, y_train.shape, X_test.shape, y_test.shape) from imblearn.pipeline import Pipeline from keras.initializers import RandomNormal def create_model(activation_1='relu', activation_2='relu', neurons_input = 1, neurons_hidden_1=1, optimizer='Adam' ,