Skip to content
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

broken modified run_classifier.py link for hyperdrive #51

Open
sriramjcet opened this issue Apr 16, 2020 · 0 comments
Open

broken modified run_classifier.py link for hyperdrive #51

sriramjcet opened this issue Apr 16, 2020 · 0 comments

Comments

@sriramjcet
Copy link

Hi,
I am trying to follow the tutorial to finetune BERT and perform hyperparamter tuning. The instruction refers to adding logging of metrics to run_classifier.py and refers to the modified run_classifier.py in hyperlink. But that is broken. Can you please share the modified run_classifier.py training script that has logging included for hyperdrive? Appreciate the help. Copy pasted the instructions from the tutorial below

Further within run_classifier.py, we log the learning rate, and the epoch training and eval loss the model achieves:

run.log('lr', np.float(args.learning_rate))

run.log('train_mean_loss', mean_loss)
run.log('eval_mean_loss', mean_loss)
run.log('train_example_loss', mean_loss)
run.log('eval_example_loss', mean_loss)
These run metrics will become particularly important when we begin hyperparameter tuning our model in the "Tune model hyperparameters" section.

Let's first copy the modified run_classifier.py into our local project directory this link is broken
Thanks,
Sriram

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant