diff --git a/understand_sentiment/index.en.html b/understand_sentiment/index.en.html index cef00600b39b5c42512966f0b7bde62152c2f835..c771e4d76a31951dbca0dd6820aba53ac4f50a1f 100644 --- a/understand_sentiment/index.en.html +++ b/understand_sentiment/index.en.html @@ -356,12 +356,6 @@ train_reader = paddle.batch( test_reader = paddle.batch( lambda: paddle.dataset.imdb.test(word_dict), batch_size=100) - -trainer.train( - reader=train_reader, - event_handler=event_handler, - feeding=feeding, - num_passes=2) ``` `feeding` is devoted to specifying the correspondence between each yield record and `paddle.layer.data`. For instance, the first column of data generated by `paddle.dataset.imdb.train()` corresponds to `word` feature.