PyTorchNLPBook icon indicating copy to clipboard operation
PyTorchNLPBook copied to clipboard

where is early_stopping_criteria param in args set?

Open agi-templar opened this issue 6 years ago • 2 comments

Hello,

I tried your sample code in Chapter 3 (CNN Classifier) and I found a line of code saying that:

  # Stop early ?
        train_state['stop_early'] = \
            train_state['early_stopping_step'] >= args.early_stopping_criteria

where args.early_stopping_criteria seems not being included in the args set.

agi-templar avatar Apr 25 '19 02:04 agi-templar

This is something you might want to pass in as a command line parameter like --early-stopping-criteria

On Wed, Apr 24, 2019 at 7:36 PM Ruibo Liu [email protected] wrote:

Hello,

I tried your sample code in Chapter 3 (CNN Classifier) and I found a line of code saying that:

Stop early ?

    train_state['stop_early'] = \
        train_state['early_stopping_step'] >= args.early_stopping_criteria

where args.early_stopping_criteria seems not being included in the args set.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/joosthub/PyTorchNLPBook/issues/16, or mute the thread https://github.com/notifications/unsubscribe-auth/ACIVODXOZ7CII3U4JVVOON3PSEKLNANCNFSM4HIJITNA .

joostware avatar Apr 25 '19 04:04 joostware

OK! Thank you for replying!

agi-templar avatar Apr 25 '19 13:04 agi-templar