From 43f7be713e0bdf931f1da558dab06b2782d5ecbb Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Tue, 12 Sep 2017 12:43:26 +0000 Subject: [PATCH] Add test data --- lstm_word2vec.ipynb | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/lstm_word2vec.ipynb b/lstm_word2vec.ipynb index d839e7e..376c64b 100644 --- a/lstm_word2vec.ipynb +++ b/lstm_word2vec.ipynb @@ -34,7 +34,7 @@ "editable": true }, "source": [ - "Download the Amazon reviews training data from a public Azure blob" + "Download the Amazon reviews data from a public Azure blob" ] }, { @@ -48,7 +48,8 @@ "outputs": [], "source": [ "CONTAINER_URL = \"https://anargyridsa.blob.core.windows.net/dlvm/\"\n", - "trainFile = \"amazon_reviews_train.csv\"" + "trainFile = \"amazon_reviews_train.csv\"\n", + "testFile = \"amazon_reviews_test.csv\"" ] }, { @@ -61,8 +62,9 @@ }, "outputs": [], "source": [ - "# read\n", - "train_data = pd.read_csv(CONTAINER_URL + trainFile, header=None, names=['rating', 'title', 'text'])" + "# read data\n", + "train_data = pd.read_csv(CONTAINER_URL + trainFile, header=None, names=['rating', 'title', 'text'])\n", + "test_data = pd.read_csv(CONTAINER_URL + testFile, header=None, names=['rating', 'title', 'text'])" ] }, { @@ -143,7 +145,9 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": true + "collapsed": true, + "deletable": true, + "editable": true }, "outputs": [], "source": [