Skip to content

Commit

Permalink
Add test data
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Sep 12, 2017
1 parent 57b4757 commit 43f7be7
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions lstm_word2vec.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
},
{
Expand All @@ -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\""
]
},
{
Expand All @@ -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'])"
]
},
{
Expand Down Expand Up @@ -143,7 +145,9 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
"collapsed": true,
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
Expand Down

0 comments on commit 43f7be7

Please sign in to comment.