mirror of https://github.com/explosion/spaCy.git
var batch is useless (#7111)
It seems that nlp.update(examples) should be nlp.update(batch)
This commit is contained in:
parent
fc4fb6eb3a
commit
9b82586699
|
@ -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