Make sure you are working with Qt Console (anaconda):
Install Jupiter extensions:
!pip install jupyter_contrib_nbextensions
!jupyter contrib nbextension install --user
!jupyter nbextension enable codefolding/main
!python -m pip install -U notebook-as-pdf
MAKE SURE YOUR WORKING DIRECTORY IS WHERE ...
nocibambi is correct...to piggy back on his a simple implementation would look something like the following. I haven't run this as I'm at work, but hopefully it points you in the right direction.
# example classifier
svclassifier = SVC(kernel='linear')
y_pred = svclassifier.predict(X_test)
For Question 1, replace val_acc with val_accuracy since the metric is named as accuracy. This might also solve your 2nd question.
checkpoint = ModelCheckpoint(filepath, monitor= "val_accuracy" , verbose=1, save_best_only=True,
mode= "max" )
For Question 1, it appears you may be using f-string but haven't specified the f before the quotation mark:
For Question 2, based on your output, I agree with @spb below, that you need to change want you monitor to monitor='val_accuracy' if this is the metric you want to use.
If you need to ...