Skip to content

Commit 7160266

Browse files
2 parents ad2f7ea + 44e0123 commit 7160266

22 files changed

+76
-323
lines changed

book.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ language = "en"
88
multilingual = false
99
src = "doc"
1010
title = "DD-Ranking Benchmark"
11+
12+
[output.html]
13+
mathjax-support = true

book/404.html

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131

3232
<!-- Custom theme stylesheets -->
3333

34+
<!-- MathJax -->
35+
<script async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
3436

3537
<!-- Provide site root to javascript -->
3638
<script>
@@ -173,22 +175,6 @@ <h1 id="document-not-found-404"><a class="header" href="#document-not-found-404"
173175

174176
</div>
175177

176-
<!-- Livereload script (if served using the cli tool) -->
177-
<script>
178-
const wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:';
179-
const wsAddress = wsProtocol + "//" + location.host + "/" + "__livereload";
180-
const socket = new WebSocket(wsAddress);
181-
socket.onmessage = function (event) {
182-
if (event.data === "reload") {
183-
socket.close();
184-
location.reload();
185-
}
186-
};
187-
188-
window.onbeforeunload = function() {
189-
socket.close();
190-
}
191-
</script>
192178

193179

194180

book/datasets/overview.html

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030

3131
<!-- Custom theme stylesheets -->
3232

33+
<!-- MathJax -->
34+
<script async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
3335

3436
<!-- Provide site root to javascript -->
3537
<script>
@@ -221,22 +223,6 @@ <h3 id="parameters"><a class="header" href="#parameters">Parameters</a></h3>
221223

222224
</div>
223225

224-
<!-- Livereload script (if served using the cli tool) -->
225-
<script>
226-
const wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:';
227-
const wsAddress = wsProtocol + "//" + location.host + "/" + "__livereload";
228-
const socket = new WebSocket(wsAddress);
229-
socket.onmessage = function (event) {
230-
if (event.data === "reload") {
231-
socket.close();
232-
location.reload();
233-
}
234-
};
235-
236-
window.onbeforeunload = function() {
237-
socket.close();
238-
}
239-
</script>
240226

241227

242228

book/getting-started/installation.html

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030

3131
<!-- Custom theme stylesheets -->
3232

33+
<!-- MathJax -->
34+
<script async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
3335

3436
<!-- Provide site root to javascript -->
3537
<script>
@@ -189,22 +191,6 @@ <h2 id="installation"><a class="header" href="#installation">Installation</a></h
189191

190192
</div>
191193

192-
<!-- Livereload script (if served using the cli tool) -->
193-
<script>
194-
const wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:';
195-
const wsAddress = wsProtocol + "//" + location.host + "/" + "__livereload";
196-
const socket = new WebSocket(wsAddress);
197-
socket.onmessage = function (event) {
198-
if (event.data === "reload") {
199-
socket.close();
200-
location.reload();
201-
}
202-
};
203-
204-
window.onbeforeunload = function() {
205-
socket.close();
206-
}
207-
</script>
208194

209195

210196

book/getting-started/quick-start.html

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030

3131
<!-- Custom theme stylesheets -->
3232

33+
<!-- MathJax -->
34+
<script async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
3335

3436
<!-- Provide site root to javascript -->
3537
<script>
@@ -252,22 +254,6 @@ <h2 id="quick-start"><a class="header" href="#quick-start">Quick Start</a></h2>
252254

253255
</div>
254256

255-
<!-- Livereload script (if served using the cli tool) -->
256-
<script>
257-
const wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:';
258-
const wsAddress = wsProtocol + "//" + location.host + "/" + "__livereload";
259-
const socket = new WebSocket(wsAddress);
260-
socket.onmessage = function (event) {
261-
if (event.data === "reload") {
262-
socket.close();
263-
location.reload();
264-
}
265-
};
266-
267-
window.onbeforeunload = function() {
268-
socket.close();
269-
}
270-
</script>
271257

272258

273259

book/index.html

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030

3131
<!-- Custom theme stylesheets -->
3232

33+
<!-- MathJax -->
34+
<script async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
3335

3436
<!-- Provide site root to javascript -->
3537
<script>
@@ -181,21 +183,21 @@ <h2 id="dd-ranking-score"><a class="header" href="#dd-ranking-score">DD-Ranking
181183
<p>The evaluation method for DD-Ranking is grounded in the essence of dataset distillation, aiming to better reflect the information content of the synthesized data by assessing the following two aspects:</p>
182184
<ol>
183185
<li>
184-
<p>The degree to which the original dataset is recovered under hard labels (hard label recovery): $\text{HLR} = \text{Acc}<em>{\text{full-hard}} - \text{Acc}</em>{\text{syn-hard}}$</p>
186+
<p>The degree to which the original dataset is recovered under hard labels (hard label recovery): \( \text{HLR} = \text{Acc.} \text{full-hard} - \text{Acc.} \text{syn-hard} \)</p>
185187
</li>
186188
<li>
187-
<p>The improvement over random selection when using personalized evaluation methods (improvement over random): $\text{IOR} = \text{Acc}<em>{\text{syn-any}} - \text{Acc}</em>{\text{rdm-any}}$</p>
189+
<p>The improvement over random selection when using personalized evaluation methods (improvement over random): \( \text{IOR} = \text{Acc.} \text{syn-any} - \text{Acc.} \text{rdm-any} \)</p>
188190
</li>
189191
</ol>
190-
<p>$\text{Acc.}$ is the accuracy of models trained on different samples. Samples' marks are as follows:</p>
192+
<p>\(\text{Acc.}\) is the accuracy of models trained on different samples. Samples' marks are as follows:</p>
191193
<ul>
192-
<li>$\text{full-hard}$: Full dataset with hard labels;</li>
193-
<li>$\text{syn-hard}$: Synthetic dataset with hard labels;</li>
194-
<li>$\text{syn-any}$: Synthetic dataset with personalized evaluation methods (hard or soft labels);</li>
195-
<li>$\text{rdm-any}$: Randomly selected dataset (under the same compression ratio) with the same personalized evaluation methods.</li>
194+
<li>\(\text{full-hard}\): Full dataset with hard labels;</li>
195+
<li>\(\text{syn-hard}\): Synthetic dataset with hard labels;</li>
196+
<li>\(\text{syn-any}\): Synthetic dataset with personalized evaluation methods (hard or soft labels);</li>
197+
<li>\(\text{rdm-any}\): Randomly selected dataset (under the same compression ratio) with the same personalized evaluation methods.</li>
196198
</ul>
197199
<p>To rank different methods, we combine the above two metrics as DD-Ranking Score:</p>
198-
<p>$$\text{DD-Ranking Score} = \frac{\text{IOR}}{\text{HLR}} = \frac{(\text{Acc}<em>{\text{syn-any}}-\text{Acc}</em>{\text{rdm-any}})}{(\text{Acc}<em>{\text{full-hard}}-\text{Acc}</em>{\text{syn-hard}})}$$</p>
200+
<p>\[\text{DD-Ranking Score} = \frac{\text{IOR}}{\text{HLR}} = \frac{(\text{Acc.} \text{syn-any}-\text{Acc.} \text{rdm-any})}{(\text{Acc.} \text{full-hard}-\text{Acc.} \text{syn-hard})}\]</p>
199201

200202
</main>
201203

@@ -220,22 +222,6 @@ <h2 id="dd-ranking-score"><a class="header" href="#dd-ranking-score">DD-Ranking
220222

221223
</div>
222224

223-
<!-- Livereload script (if served using the cli tool) -->
224-
<script>
225-
const wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:';
226-
const wsAddress = wsProtocol + "//" + location.host + "/" + "__livereload";
227-
const socket = new WebSocket(wsAddress);
228-
socket.onmessage = function (event) {
229-
if (event.data === "reload") {
230-
socket.close();
231-
location.reload();
232-
}
233-
};
234-
235-
window.onbeforeunload = function() {
236-
socket.close();
237-
}
238-
</script>
239225

240226

241227

book/introduction.html

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030

3131
<!-- Custom theme stylesheets -->
3232

33+
<!-- MathJax -->
34+
<script async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
3335

3436
<!-- Provide site root to javascript -->
3537
<script>
@@ -181,21 +183,21 @@ <h2 id="dd-ranking-score"><a class="header" href="#dd-ranking-score">DD-Ranking
181183
<p>The evaluation method for DD-Ranking is grounded in the essence of dataset distillation, aiming to better reflect the information content of the synthesized data by assessing the following two aspects:</p>
182184
<ol>
183185
<li>
184-
<p>The degree to which the original dataset is recovered under hard labels (hard label recovery): $\text{HLR} = \text{Acc}<em>{\text{full-hard}} - \text{Acc}</em>{\text{syn-hard}}$</p>
186+
<p>The degree to which the original dataset is recovered under hard labels (hard label recovery): \( \text{HLR} = \text{Acc.} \text{full-hard} - \text{Acc.} \text{syn-hard} \)</p>
185187
</li>
186188
<li>
187-
<p>The improvement over random selection when using personalized evaluation methods (improvement over random): $\text{IOR} = \text{Acc}<em>{\text{syn-any}} - \text{Acc}</em>{\text{rdm-any}}$</p>
189+
<p>The improvement over random selection when using personalized evaluation methods (improvement over random): \( \text{IOR} = \text{Acc.} \text{syn-any} - \text{Acc.} \text{rdm-any} \)</p>
188190
</li>
189191
</ol>
190-
<p>$\text{Acc.}$ is the accuracy of models trained on different samples. Samples' marks are as follows:</p>
192+
<p>\(\text{Acc.}\) is the accuracy of models trained on different samples. Samples' marks are as follows:</p>
191193
<ul>
192-
<li>$\text{full-hard}$: Full dataset with hard labels;</li>
193-
<li>$\text{syn-hard}$: Synthetic dataset with hard labels;</li>
194-
<li>$\text{syn-any}$: Synthetic dataset with personalized evaluation methods (hard or soft labels);</li>
195-
<li>$\text{rdm-any}$: Randomly selected dataset (under the same compression ratio) with the same personalized evaluation methods.</li>
194+
<li>\(\text{full-hard}\): Full dataset with hard labels;</li>
195+
<li>\(\text{syn-hard}\): Synthetic dataset with hard labels;</li>
196+
<li>\(\text{syn-any}\): Synthetic dataset with personalized evaluation methods (hard or soft labels);</li>
197+
<li>\(\text{rdm-any}\): Randomly selected dataset (under the same compression ratio) with the same personalized evaluation methods.</li>
196198
</ul>
197199
<p>To rank different methods, we combine the above two metrics as DD-Ranking Score:</p>
198-
<p>$$\text{DD-Ranking Score} = \frac{\text{IOR}}{\text{HLR}} = \frac{(\text{Acc}<em>{\text{syn-any}}-\text{Acc}</em>{\text{rdm-any}})}{(\text{Acc}<em>{\text{full-hard}}-\text{Acc}</em>{\text{syn-hard}})}$$</p>
200+
<p>\[\text{DD-Ranking Score} = \frac{\text{IOR}}{\text{HLR}} = \frac{(\text{Acc.} \text{syn-any}-\text{Acc.} \text{rdm-any})}{(\text{Acc.} \text{full-hard}-\text{Acc.} \text{syn-hard})}\]</p>
199201

200202
</main>
201203

@@ -220,22 +222,6 @@ <h2 id="dd-ranking-score"><a class="header" href="#dd-ranking-score">DD-Ranking
220222

221223
</div>
222224

223-
<!-- Livereload script (if served using the cli tool) -->
224-
<script>
225-
const wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:';
226-
const wsAddress = wsProtocol + "//" + location.host + "/" + "__livereload";
227-
const socket = new WebSocket(wsAddress);
228-
socket.onmessage = function (event) {
229-
if (event.data === "reload") {
230-
socket.close();
231-
location.reload();
232-
}
233-
};
234-
235-
window.onbeforeunload = function() {
236-
socket.close();
237-
}
238-
</script>
239225

240226

241227

book/metrics/general.html

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030

3131
<!-- Custom theme stylesheets -->
3232

33+
<!-- MathJax -->
34+
<script async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
3335

3436
<!-- Provide site root to javascript -->
3537
<script>
@@ -278,22 +280,6 @@ <h3 id="examples"><a class="header" href="#examples">Examples</a></h3>
278280

279281
</div>
280282

281-
<!-- Livereload script (if served using the cli tool) -->
282-
<script>
283-
const wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:';
284-
const wsAddress = wsProtocol + "//" + location.host + "/" + "__livereload";
285-
const socket = new WebSocket(wsAddress);
286-
socket.onmessage = function (event) {
287-
if (event.data === "reload") {
288-
socket.close();
289-
location.reload();
290-
}
291-
};
292-
293-
window.onbeforeunload = function() {
294-
socket.close();
295-
}
296-
</script>
297283

298284

299285

book/metrics/hard-label.html

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030

3131
<!-- Custom theme stylesheets -->
3232

33+
<!-- MathJax -->
34+
<script async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
3335

3436
<!-- Provide site root to javascript -->
3537
<script>
@@ -310,22 +312,6 @@ <h4 id="returns"><a class="header" href="#returns">Returns</a></h4>
310312

311313
</div>
312314

313-
<!-- Livereload script (if served using the cli tool) -->
314-
<script>
315-
const wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:';
316-
const wsAddress = wsProtocol + "//" + location.host + "/" + "__livereload";
317-
const socket = new WebSocket(wsAddress);
318-
socket.onmessage = function (event) {
319-
if (event.data === "reload") {
320-
socket.close();
321-
location.reload();
322-
}
323-
};
324-
325-
window.onbeforeunload = function() {
326-
socket.close();
327-
}
328-
</script>
329315

330316

331317

book/metrics/overview.html

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030

3131
<!-- Custom theme stylesheets -->
3232

33+
<!-- MathJax -->
34+
<script async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
3335

3436
<!-- Provide site root to javascript -->
3537
<script>
@@ -189,22 +191,6 @@ <h1 id="dd-ranking-metrics"><a class="header" href="#dd-ranking-metrics">DD-Rank
189191

190192
</div>
191193

192-
<!-- Livereload script (if served using the cli tool) -->
193-
<script>
194-
const wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:';
195-
const wsAddress = wsProtocol + "//" + location.host + "/" + "__livereload";
196-
const socket = new WebSocket(wsAddress);
197-
socket.onmessage = function (event) {
198-
if (event.data === "reload") {
199-
socket.close();
200-
location.reload();
201-
}
202-
};
203-
204-
window.onbeforeunload = function() {
205-
socket.close();
206-
}
207-
</script>
208194

209195

210196

0 commit comments

Comments
 (0)