mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 12:18:04 +03:00
var batch is useless (#7111)
It seems that nlp.update(examples) should be nlp.update(batch)
This commit is contained in:
parent
e6526b0831
commit
d18ccdf822
|
@ -1058,7 +1058,7 @@ nlp.initialize(lambda: examples)
|
|||
for i in range(20):
|
||||
random.shuffle(examples)
|
||||
for batch in minibatch(examples, size=8):
|
||||
nlp.update(examples)
|
||||
nlp.update(batch)
|
||||
```
|
||||
|
||||
`Language.begin_training` and `TrainablePipe.begin_training` have been renamed
|
||||
|
|
Loading…
Reference in New Issue
Block a user