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