mirror of
https://github.com/wassname/template.git
synced 2026-06-27 23:40:33 +08:00
133 lines
5.7 KiB
HTML
133 lines
5.7 KiB
HTML
<!doctype html>
|
||
|
||
<head>
|
||
<meta charset="utf8">
|
||
|
||
<d-front-matter>
|
||
<script id='distill-front-matter' type="text/json">{
|
||
"title": "How to Use t-SNE Effectively",
|
||
"published": "Jan 10, 2017",
|
||
"authors": [
|
||
{
|
||
"author":"Chris Olah",
|
||
"authorURL":"https://colah.github.io/",
|
||
"affiliation":"Google Brain",
|
||
"affiliationURL":"https://g.co/brain"
|
||
},
|
||
{
|
||
"author":"Shan Carter",
|
||
"authorURL":"https://shancarter.com/",
|
||
"affiliation":"Google Brain",
|
||
"affiliationURL":"https://g.co/brain"
|
||
}
|
||
],
|
||
"katex": {
|
||
"delimiters": [
|
||
{"left": "$$", "right": "$$", "display": false}
|
||
]
|
||
}
|
||
}</script>
|
||
</d-front-matter>
|
||
|
||
<script src="../dist/template.v2.js"></script>
|
||
</head>
|
||
|
||
<body>
|
||
<d-article>
|
||
<h2>Although extremely useful for visualizing high-dimensional data, t-SNE plots can sometimes be mysterious or misleading.</h2>
|
||
<d-byline></d-byline>
|
||
<!-- <d-abstract>
|
||
<p>This is the first paragraph of the article. Test a long — dash -- here it is.</p>
|
||
</d-abstract> -->
|
||
<p>A popular method for exploring high-dimensional data is something called t-SNE. The technique has become widespread in the field of machine learning, since it has an almost magical ability to create compelling two-dimensonal “maps” from data with hundreds or even thousands of dimensions. Although impressive, these images can be tempting to misread. The purpose of this note is to prevent some common misreadings.
|
||
<p>Before diving in: if you haven’t encountered t-SNE before, here’s what you need to know about the math behind it. The goal is to take a set of points in a high-dimensional space and find a faithful representation of those points in a lower-dimensional space, typically the 2D plane. The algorithm is non-linear and adapts to the underlying data, performing different transformations on different regions. Those differences can be a major source of confusion.
|
||
<p>This is the first paragraph of the article. Test a long — dash -- here it is.</p>
|
||
<p>Test for owner's possessive. Test for "quoting a passage." And another sentence. Or two. Some flopping fins; for diving.</p>
|
||
<p>Here's a test of an inline equation <d-math>c = a^2 + b^2</d-math>. Also with configurable katex standards just using inline '$' signs: $$x^2$$ And then there's a block equation:</p>
|
||
<d-math block>
|
||
c = \pm \sqrt{ \sum_{i=0}^{n}{a^{222} + b^2}}
|
||
</d-math>
|
||
<p>
|
||
Math can also be quite involved:
|
||
<d-math block>
|
||
f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi
|
||
</d-math>
|
||
<d-math block>
|
||
\frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} = 1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}} {1+\frac{e^{-8\pi}} {1+\cdots} } } }
|
||
</d-math>
|
||
</p>
|
||
<p>We can<d-cite key="mercier2011humans"></d-cite> also cite <d-cite key="gregor2015draw,mercier2011humans"></d-cite> external publications. <d-cite key="dong2014image,dumoulin2016guide,mordvintsev2015inceptionism"></d-cite></p>
|
||
<p>We should also be testing footnotes<d-footnote>This will become a hoverable footnote. This will become a hoverable footnote. This will become a hoverable footnote. This will become a hoverable footnote. This will become a hoverable footnote. This will become a hoverable footnote. This will become a hoverable footnote. This will become a hoverable footnote.</d-footnote>. There are multiple footnotes, and they appear in the appendix<d-footnote>Given I have coded them right. Also, here's math in a footnote: <d-math>c = \sum_0^i{x}</d-math>. Also, a citation. Box-ception<d-cite key='gregor2015draw'></d-cite>!</d-footnote> as well.</p>
|
||
<table>
|
||
<thead>
|
||
<tr><th>First</th><th>Second</th><th>Third</th></tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>23</td><td>654</td><td>23</td></tr>
|
||
<tr><td>14</td><td>54</td><td>34</td></tr>
|
||
<tr><td>234</td><td>54</td><td>23</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<h2>Displaying code snippets</h2>
|
||
<p>Some inline javascript:<d-code language="javascript">var x = 25;</d-code>. And here's a javascript code block.</p>
|
||
<d-code block language="javascript">
|
||
var x = 25;
|
||
function(x){
|
||
return x * x;
|
||
}
|
||
</d-code>
|
||
<p>We also support python.</p>
|
||
<d-code block language="python">
|
||
# Python 3: Fibonacci series up to n
|
||
def fib(n):
|
||
a, b = 0, 1
|
||
while a < n:
|
||
print(a, end=' ')
|
||
a, b = b, a+b
|
||
</d-code>
|
||
<d-figure id="last-figure"></d-figure>
|
||
<script>
|
||
const figure = document.querySelector("d-figure#last-figure");
|
||
const initTag = document.createElement("span");
|
||
initTag.textContent = "initialized!"
|
||
figure.appendChild(initTag);
|
||
figure.addEventListener("ready", function() {
|
||
const initTag = figure.querySelector("span");
|
||
initTag.textContent = "ready"
|
||
console.log('ready')
|
||
});
|
||
figure.addEventListener("onscreen", function() {
|
||
const initTag = figure.querySelector("span");
|
||
initTag.textContent = "onscreen"
|
||
console.log('onscreen')
|
||
});
|
||
figure.addEventListener("offscreen", function() {
|
||
const initTag = figure.querySelector("span");
|
||
initTag.textContent = "offscreen!"
|
||
console.log('offscreen')
|
||
});
|
||
</script>
|
||
<p>That's it for the example article!</p>
|
||
<aside>Some text.</aside>
|
||
|
||
</d-article>
|
||
|
||
<d-appendix>
|
||
|
||
<div id='contributions'>
|
||
<h3>Contributions</h3>
|
||
<p>Some text describing who did what.</p>
|
||
<h3>Reviewers</h3>
|
||
<p>Some text with links describing who reviewed the article.</p>
|
||
</div>
|
||
|
||
<d-footnote-list></d-footnote-list>
|
||
|
||
<d-bibliography src="bibliography.bib"></d-bibliography>
|
||
|
||
<distill-appendix> </distill-appendix>
|
||
|
||
</d-appendix>
|
||
|
||
</body>
|