Merge pull request #633 from tjrileywisc/master

Fixed a minor typo in deep learning tutorial docs.
This commit is contained in:
Ines Montani 2016-11-17 19:40:48 +01:00 committed by GitHub
commit caa84e3a12

View File

@ -71,7 +71,7 @@ p
def pipe(self, docs, batch_size=1000, n_threads=2): def pipe(self, docs, batch_size=1000, n_threads=2):
for minibatch in cytoolz.partition_all(batch_size, docs): for minibatch in cytoolz.partition_all(batch_size, docs):
Xs = get_features(minibatch) Xs = get_features(minibatch)
ys = self._model.predict(X) ys = self._model.predict(Xs)
for i, doc in enumerate(minibatch): for i, doc in enumerate(minibatch):
doc.sentiment = ys[i] doc.sentiment = ys[i]