Skip to content

Commit 5a6ffe9

Browse files
author
sant_si
committed
X_train changed to x_train
1 parent d5d248a commit 5a6ffe9

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

nlp_imdb.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@
198198
"metadata": {},
199199
"outputs": [],
200200
"source": [
201-
"clf.fit(X_train_counts, y_train)"
201+
"clf.fit(x_train_counts, y_train)"
202202
]
203203
},
204204
{
@@ -207,7 +207,7 @@
207207
"metadata": {},
208208
"outputs": [],
209209
"source": [
210-
"predicted = clf.predict(X_test_counts)"
210+
"predicted = clf.predict(x_test_counts)"
211211
]
212212
},
213213
{
@@ -250,7 +250,7 @@
250250
"outputs": [],
251251
"source": [
252252
"model = models.Sequential()\n",
253-
"model.add(layers.Dense(128, activation = \"relu\", input_shape=(X_train_counts.shape[1], )))\n",
253+
"model.add(layers.Dense(128, activation = \"relu\", input_shape=(x_train_counts.shape[1], )))\n",
254254
"# Hidden - Layers\n",
255255
"model.add(layers.Dropout(0.3, noise_shape=None, seed=None))\n",
256256
"model.add(layers.Dense(64, activation = \"relu\"))\n",
@@ -276,7 +276,7 @@
276276
"metadata": {},
277277
"outputs": [],
278278
"source": [
279-
"model.fit(X_train_counts, y_train, epochs=2)"
279+
"model.fit(x_train_counts, y_train, epochs=2)"
280280
]
281281
},
282282
{
@@ -285,7 +285,7 @@
285285
"metadata": {},
286286
"outputs": [],
287287
"source": [
288-
"predicted = model.predict_classes(X_test_counts)"
288+
"predicted = model.predict_classes(x_test_counts)"
289289
]
290290
},
291291
{

0 commit comments

Comments
 (0)