-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Medicalai ErrorStoppping Not Working #8
Comments
Hi @aibharata is there any progress on this? |
Hi @zeynepkoyun, Thank you for bringing this to our notice. There are a few bugs here. Currently, it expects a dictionary. You can initialize and pass bestModelCond like this :
We will issue a bug fix in a few days to support more conditions. By the way, which version are you using currently? |
Hi @aibharata |
Hi @aibharata
When we want to stop the training early with medicalai via a callback called EarlyStopping, it gives an error at line 209 in the file "medicalai/chief/core.py".
How should the data be defined here, because it is desired to behave like a string first and then a dictionary.
Can you share sample data?
Error line
if bestModelCond is not None and bestModelCond.lower() != 'default':
print('\n[INFO]: ENGINE INITIALIZED WITH "SAVING BEST MODEL" and Early Stopping MODE\n')
earlystop_callback = tf.keras.callbacks.EarlyStopping(
monitor=bestModelCond['monitor'],
min_delta=bestModelCond['min_delta'],
patience=bestModelCond['patience']
)
if callbacks is None:
callbacks=[earlystop_callback]
else:
callbacks.append(earlystop_callback)
The text was updated successfully, but these errors were encountered: