aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/examples/udacity
diff options
context:
space:
mode:
authorGravatar Vincent Vanhoucke <vanhoucke@google.com>2017-07-13 10:27:09 -0700
committerGravatar Frank Chen <frankchn@gmail.com>2017-07-13 10:27:09 -0700
commitd6082e09668a655ef6e4404fdbcad1224f29c2fb (patch)
tree620e2124571bae5f4bf581e51db2514a65631aeb /tensorflow/examples/udacity
parent57a6f8e0bae1b567a0f67fe1f1bfb7b5d514d714 (diff)
Fix TSNE invocation in Udacity word2vec assignment (#11482)
Default TSNE method recently changed to the approximate `method='barnes_hut'` which fails to converge per https://github.com/tensorflow/tensorflow/pull/11455
Diffstat (limited to 'tensorflow/examples/udacity')
-rw-r--r--tensorflow/examples/udacity/5_word2vec.ipynb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/examples/udacity/5_word2vec.ipynb b/tensorflow/examples/udacity/5_word2vec.ipynb
index 9d4243d7ae..18c456cad7 100644
--- a/tensorflow/examples/udacity/5_word2vec.ipynb
+++ b/tensorflow/examples/udacity/5_word2vec.ipynb
@@ -806,7 +806,7 @@
"source": [
"num_points = 400\n",
"\n",
- "tsne = TSNE(perplexity=30, n_components=2, init='pca', n_iter=5000)\n",
+ "tsne = TSNE(perplexity=30, n_components=2, init='pca', n_iter=5000, method='exact')\n",
"two_d_embeddings = tsne.fit_transform(final_embeddings[1:num_points+1, :])"
],
"outputs": [],