From 6fe9354c44a4b9d541cc0e44489cde44d8474f30 Mon Sep 17 00:00:00 2001 From: Yang Yu Date: Tue, 26 Dec 2017 11:14:23 +0800 Subject: [PATCH] Pass pre-commit --- 06.understand_sentiment/index.cn.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/06.understand_sentiment/index.cn.html b/06.understand_sentiment/index.cn.html index 5c5343c..7e20997 100644 --- a/06.understand_sentiment/index.cn.html +++ b/06.understand_sentiment/index.cn.html @@ -277,10 +277,10 @@ if __name__ == '__main__': ```python train_reader = paddle.batch( paddle.reader.shuffle( - lambda: paddle.dataset.imdb.train(word_dict), buf_size=1000), + paddle.dataset.imdb.train(word_dict), buf_size=1000), batch_size=100) test_reader = paddle.batch( - lambda: paddle.dataset.imdb.test(word_dict), + paddle.dataset.imdb.test(word_dict), batch_size=100) ``` 这里,`dataset.imdb.train()`和`dataset.imdb.test()`分别是`dataset.imdb`中的训练数据和测试数据API。`train_reader`在训练时使用,意义是将读取的训练数据进行shuffle后,组成一个batch数据。同理,`test_reader`是在测试的时候使用,将读取的测试数据组成一个batch。 -- GitLab