Fixed a minor typo in deep learning tutorial docs.

This commit is contained in:
tjrileywisc 2016-11-17 13:38:10 -05:00
parent 718e66a7b9
commit 464a4f3f6f

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]