Update README.md

This commit is contained in:
William Falcon 2019-03-31 16:36:29 -04:00 committed by GitHub
parent 5943438316
commit 7e81a17c11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -80,13 +80,13 @@ def main(hparams):
exp.argparse(hparams) exp.argparse(hparams)
exp.save() exp.save()
model_save_path = '{}/{}/{}'.format(hparams.model_save_path, exp.name, exp.version)
# build model # build model
model = ExampleModel(hparams) model = ExampleModel(hparams)
# callbacks # callbacks
early_stop = EarlyStopping(monitor='val_acc', patience=3, mode='min', verbose=True) early_stop = EarlyStopping(monitor='val_acc', patience=3, mode='min', verbose=True)
model_save_path = '{}/{}/{}'.format(hparams.model_save_path, exp.name, exp.version)
checkpoint = ModelCheckpoint(filepath=model_save_path, save_function=None, save_best_only=True, verbose=True, monitor='val_acc', mode='min') checkpoint = ModelCheckpoint(filepath=model_save_path, save_function=None, save_best_only=True, verbose=True, monitor='val_acc', mode='min')
# configure trainer # configure trainer