mirror of
https://github.com/explosion/spaCy.git
synced 2025-06-07 14:43:13 +03:00
Pass step=0
to Schedule
class to yield initial learning rate (#12078)
This commit is contained in:
parent
b510fbd0aa
commit
a231bf65af
|
@ -100,7 +100,7 @@ def train(
|
||||||
stdout.write(
|
stdout.write(
|
||||||
msg.info(f"Set annotations on update for: {annotating_components}") + "\n"
|
msg.info(f"Set annotations on update for: {annotating_components}") + "\n"
|
||||||
)
|
)
|
||||||
stdout.write(msg.info(f"Initial learn rate: {optimizer.learn_rate}") + "\n")
|
stdout.write(msg.info(f"Initial learn rate: {optimizer.learn_rate(step=0)}") + "\n")
|
||||||
with nlp.select_pipes(disable=frozen_components):
|
with nlp.select_pipes(disable=frozen_components):
|
||||||
log_step, finalize_logger = train_logger(nlp, stdout, stderr)
|
log_step, finalize_logger = train_logger(nlp, stdout, stderr)
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user