mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-27 10:26:35 +03:00
Fix parser distillation test seed
The test would sometimes fail. Rather than increasing test by increasing training iterations, use a known-good seed.
This commit is contained in:
parent
7b689bde44
commit
532225b955
|
@ -405,6 +405,7 @@ def test_is_distillable():
|
||||||
@pytest.mark.slow
|
@pytest.mark.slow
|
||||||
@pytest.mark.parametrize("max_moves", [0, 1, 5, 100])
|
@pytest.mark.parametrize("max_moves", [0, 1, 5, 100])
|
||||||
def test_distill(max_moves):
|
def test_distill(max_moves):
|
||||||
|
fix_random_seed(0)
|
||||||
teacher = English()
|
teacher = English()
|
||||||
teacher_parser = teacher.add_pipe("parser")
|
teacher_parser = teacher.add_pipe("parser")
|
||||||
train_examples = []
|
train_examples = []
|
||||||
|
|
Loading…
Reference in New Issue
Block a user