Skip to content

Commit 43a34fd

Browse files
committed
Merge pull request #1 from oreillymedia/beta
merged
2 parents f8debe5 + 7036f77 commit 43a34fd

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ for i in range(ncols * nrows):
8585
ax.matshow(digits.images[i,...])
8686
plt.xticks([]); plt.yticks([])
8787
plt.title(digits.target[i])
88-
plt.savefig('images/digits.png', dpi=150)
88+
plt.savefig('images/digits-generated.png', dpi=150)
8989
</pre>
9090

9191
![Digits](images/digits.png)
@@ -147,7 +147,7 @@ Here is the result.
147147
data-executable="true"
148148
data-type="programlisting">
149149
scatter(digits_proj, y)
150-
plt.savefig('images/digits_tsne.png', dpi=120)
150+
plt.savefig('images/digits_tsne-generated.png', dpi=120)
151151
</pre>
152152

153153
![Transformed digits with t-SNE](images/digits_tsne.png)
@@ -224,7 +224,7 @@ plt.subplot(133)
224224
plt.imshow(P_binary_s[::10, ::10], interpolation='none', cmap=pal)
225225
plt.axis('off')
226226
plt.title("$p_{j|i}$ (variable $\sigma$)", fontdict={'fontsize': 16})
227-
plt.savefig('images/similarity.png', dpi=120)
227+
plt.savefig('images/similarity-generated.png', dpi=120)
228228
</pre>
229229

230230
We can already observe the 10 groups in the data, corresponding to the 10 numbers.
@@ -245,8 +245,8 @@ The final mapping is obtained when the equilibrium is reached.
245245

246246
Here is an illustration of a dynamic graph layout based on a similar idea. Nodes are connected via springs and the system evolves according to law of physics (example by [Mike Bostock](http://bl.ocks.org/mbostock/4062045)).
247247

248-
<iframe src="http://bl.ocks.org/rossant/raw/f06184034ba66a0bd06a/"
249-
style="border: 0; width: 620px; height: 440px; margin: 0; padding: 0;" />
248+
<iframe src="https://d3ansictanv2wj.cloudfront.net/rossant-f06184034ba66a0bd06a-001.html"
249+
style="border: 0; width: 620px; height: 440px; margin: 0; padding: 0;" sandbox="allow-scripts" />
250250

251251

252252

@@ -422,7 +422,7 @@ for i, D in enumerate((2, 5, 10)):
422422
ax.hist(norm(points, axis=1),
423423
bins=np.linspace(0., 1., 50))
424424
ax.set_title('D=%d' % D, loc='left')
425-
plt.savefig('images/spheres.png', dpi=100, bbox_inches='tight')
425+
plt.savefig('images/spheres-generated.png', dpi=100, bbox_inches='tight')
426426
</pre>
427427

428428
![Spheres](images/spheres.png)
@@ -440,7 +440,7 @@ cauchy = 1/(1+z**2)
440440
plt.plot(z, gauss, label='Gaussian distribution')
441441
plt.plot(z, cauchy, label='Cauchy distribution')
442442
plt.legend()
443-
plt.savefig('images/distributions.png', dpi=100)
443+
plt.savefig('images/distributions-generated.png', dpi=100)
444444
</pre>
445445

446446
![Gaussian and Cauchy distributions](images/distributions.png)

atlas.json

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"branch": "master",
33
"files": [
4-
"main.md"
4+
"README.md"
55
],
66
"formats": {
77
"pdf": {
@@ -29,10 +29,15 @@
2929
"toc": false,
3030
"syntaxhighlighting": false,
3131
"show_comments": false,
32-
"consolidated": false
32+
"consolidated": false,
33+
"javascripts": [
34+
"http://rawgit.com/oreillymedia/thebe/master/static/main-built.js",
35+
"page.js"
36+
]
3337
}
3438
},
3539
"theme": "oreillymedia/jupyter_theme",
3640
"title": "An illustrated introduction to the t-SNE algorithm",
37-
"github_url": "https://github.com/oreillymedia/ipython-tutorial-content"
41+
"github_url": "https://github.com/oreillymedia/ipython-tutorial-content",
42+
"uuid": "b0c6f45f-cc4f-4c32-9a70-c3c4adc54c70"
3843
}

page.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
$(function(){
2+
new Thebe({url:"https://oreillyorchard.com:8000/spawn/"});
3+
});

0 commit comments

Comments
 (0)