WARNING:tensorflow:Early stopping conditioned on metric `val_loss` which is not available. Available metrics are: loss,recall Question: I have the error in the title when running the code below: def create_model(learning_rate, dropout, l2_lambda): model = Sequential() model.add(Dense(128,input_dim=X_train.shape[1], activation=’relu’, kernel_regularizer=regularizers.l2(l2_lambda))) model.add(BatchNormalization()) model.add(Dropout(dropout)) model.add(Dense(64, activation=’relu’, kernel_regularizer=regularizers.l2(l2_lambda))) model.add(Dropout(dropout)) model.add(Dense(1, activation=’sigmoid’)) optimizer = Adam(learning_rate=learning_rate) model.compile(loss=’binary_crossentropy’, optimizer=optimizer, metrics=[‘Recall’]) return model early_stopping = …
Total answers: 1