Update README.md
This commit is contained in:
parent
5943438316
commit
7e81a17c11
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue