mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-11 08:42:28 +03:00
black formatting round 2
This commit is contained in:
parent
34d3720fc0
commit
2b19b35030
|
@ -2,7 +2,7 @@ from typing import Union, Iterable, Sequence, TypeVar, List, Callable, Iterator
|
||||||
from typing import Optional, Any
|
from typing import Optional, Any
|
||||||
from functools import partial
|
from functools import partial
|
||||||
import itertools
|
import itertools
|
||||||
from thinc.schedules import Schedule #type:ignore[attr-defined]
|
from thinc.schedules import Schedule # type:ignore[attr-defined]
|
||||||
|
|
||||||
from ..util import registry, minibatch
|
from ..util import registry, minibatch
|
||||||
|
|
||||||
|
|
|
@ -241,7 +241,7 @@ def train_while_improving(
|
||||||
score, other_scores = evaluate()
|
score, other_scores = evaluate()
|
||||||
else:
|
else:
|
||||||
score, other_scores = evaluate()
|
score, other_scores = evaluate()
|
||||||
optimizer.last_score = score #type:ignore[attr-defined]
|
optimizer.last_score = score # type:ignore[attr-defined]
|
||||||
results.append((score, step))
|
results.append((score, step))
|
||||||
is_best_checkpoint = score == max(results)[0]
|
is_best_checkpoint = score == max(results)[0]
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user