Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1d288e1

Browse files
committed
update some parameters in finetuning bert tutorial
1 parent3967523 commit1d288e1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎machine-learning/nlp/bert-text-classification/finetune-bert.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@
208208
" logging_dir='./logs', # directory for storing logs\n",
209209
" load_best_model_at_end=True, # load the best model when finished training (default metric is loss)\n",
210210
" # but you can specify `metric_for_best_model` argument to change to accuracy or other metric\n",
211-
" logging_steps=200, # log & save weights each logging_steps\n",
212-
" save_steps=200,\n",
211+
" logging_steps=400, # log & save weights each logging_steps\n",
212+
" save_steps=400,\n",
213213
" evaluation_strategy=\"steps\", # evaluate each `logging_steps`\n",
214214
")"
215215
]

‎machine-learning/nlp/bert-text-classification/train.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ def compute_metrics(pred):
9292
logging_dir='./logs',# directory for storing logs
9393
load_best_model_at_end=True,# load the best model when finished training (default metric is loss)
9494
# but you can specify `metric_for_best_model` argument to change to accuracy or other metric
95-
logging_steps=200,# log & save weights each logging_steps
96-
save_steps=200,
95+
logging_steps=400,# log & save weights each logging_steps
96+
save_steps=400,
9797
evaluation_strategy="steps",# evaluate each `logging_steps`
9898
)
9999

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp