Skip to content

Commit af85d47

Browse files
Update doc
1 parent 790204b commit af85d47

29 files changed

+80
-80
lines changed

book/augmentations/cutmix.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ <h2 id="cutmix"><a class="header" href="#cutmix">Cutmix</a></h2>
158158
<p>Cutmix is a data augmentation technique that creates new samples by combining patches from two images while blending their labels proportionally to the area of the patches.. We follow the implementation of cutmix in <a href="https://github.com/VILA-Lab/SRe2L/tree/main/SRe2L">SRe2L</a>.</p>
159159
<div style="background-color:#F7F7F7; padding:15px; border:1px solid #E0E0E0; border-top:3px solid #FF0000; font-family:monospace; font-size:14px;">
160160
<p><span style="color:#FF6B00;">CLASS</span>
161-
dd_ranking.aug.Cutmix(params: dict)
162-
<a href="https://github.com/NUS-HPC-AI-Lab/DD-Ranking/blob/main/dd_ranking/aug/cutmix.py"><strong>[SOURCE]</strong></a></p>
161+
ddranking.aug.Cutmix(params: dict)
162+
<a href="https://github.com/NUS-HPC-AI-Lab/DD-Ranking/blob/main/ddranking/aug/cutmix.py"><strong>[SOURCE]</strong></a></p>
163163
</div>
164164
<h3 id="parameters"><a class="header" href="#parameters">Parameters</a></h3>
165165
<ul>

book/augmentations/dsa.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ <h2 id="differentiable-siamese-augmentation-dsa"><a class="header" href="#differ
169169
</ul>
170170
<div style="background-color:#F7F7F7; padding:15px; border:1px solid #E0E0E0; border-top:3px solid #FF0000; font-family:monospace; font-size:14px;">
171171
<p><span style="color:#FF6B00;">CLASS</span>
172-
dd_ranking.aug.DSA(params: dict, seed: int, aug_mode: str)
173-
<a href="https://github.com/NUS-HPC-AI-Lab/DD-Ranking/blob/main/dd_ranking/aug/dsa.py"><strong>[SOURCE]</strong></a></p>
172+
ddranking.aug.DSA(params: dict, seed: int, aug_mode: str)
173+
<a href="https://github.com/NUS-HPC-AI-Lab/DD-Ranking/blob/main/ddranking/aug/dsa.py"><strong>[SOURCE]</strong></a></p>
174174
</div>
175175
<h3 id="parameters"><a class="header" href="#parameters">Parameters</a></h3>
176176
<ul>

book/augmentations/mixup.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ <h2 id="mixup"><a class="header" href="#mixup">Mixup</a></h2>
158158
<p>Mixup is a data augmentation technique that generates new training samples by linearly interpolating pairs of images. We follow the implementation of mixup in <a href="https://github.com/VILA-Lab/SRe2L/tree/main/SRe2L">SRe2L</a>.</p>
159159
<div style="background-color:#F7F7F7; padding:15px; border:1px solid #E0E0E0; border-top:3px solid #FF0000; font-family:monospace; font-size:14px;">
160160
<p><span style="color:#FF6B00;">CLASS</span>
161-
dd_ranking.aug.Mixup(params: dict)
162-
<a href="https://github.com/NUS-HPC-AI-Lab/DD-Ranking/blob/main/dd_ranking/aug/mixup.py"><strong>[SOURCE]</strong></a></p>
161+
ddranking.aug.Mixup(params: dict)
162+
<a href="https://github.com/NUS-HPC-AI-Lab/DD-Ranking/blob/main/ddranking/aug/mixup.py"><strong>[SOURCE]</strong></a></p>
163163
</div>
164164
<h3 id="parameters"><a class="header" href="#parameters">Parameters</a></h3>
165165
<ul>

book/datasets/overview.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ <h1 class="menu-title">DD-Ranking API Documentation</h1>
157157
<h1 id="datasets"><a class="header" href="#datasets">Datasets</a></h1>
158158
<p>DD-Ranking provides a set of commonly used datasets in existing dataset distillation methods. Users can flexibly use these datasets for evaluation. The interface to load datasets is as follows:</p>
159159
<div style="background-color:#F7F7F7; padding:15px; border:1px solid #E0E0E0; border-top:3px solid #FF0000; font-family:monospace; font-size:14px;">
160-
<p>dd_ranking.utils.get_dataset(dataset: str, data_path: str, im_size: tuple, use_zca: bool, custom_val_trans: Optional[Callable], device: str)
161-
<a href="https://github.com/NUS-HPC-AI-Lab/DD-Ranking/blob/main/dd_ranking/utils/data.py"><strong>[SOURCE]</strong></a></p>
160+
<p>ddranking.utils.get_dataset(dataset: str, data_path: str, im_size: tuple, use_zca: bool, custom_val_trans: Optional[Callable], device: str)
161+
<a href="https://github.com/NUS-HPC-AI-Lab/DD-Ranking/blob/main/ddranking/utils/data.py"><strong>[SOURCE]</strong></a></p>
162162
</div>
163163
<h3 id="parameters"><a class="header" href="#parameters">Parameters</a></h3>
164164
<ul>

book/metrics/general.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ <h2 id="generalevaluator"><a class="header" href="#generalevaluator">GeneralEval
187187
custom_val_trans: Optional[Callable]=None,
188188
device: str="cuda"
189189
)
190-
<a href="https://github.com/NUS-HPC-AI-Lab/DD-Ranking/blob/main/dd_ranking/metrics/general.py"><strong>[SOURCE]</strong></a></p>
190+
<a href="https://github.com/NUS-HPC-AI-Lab/DD-Ranking/blob/main/ddranking/metrics/general.py"><strong>[SOURCE]</strong></a></p>
191191
</div>
192192
<p>A class for evaluating the traditional test accuracy of a surrogate model on the synthetic dataset under various settings (label type, data augmentation, etc.).</p>
193193
<h3 id="parameters"><a class="header" href="#parameters">Parameters</a></h3>

book/metrics/hard-label.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ <h2 id="hardlabelevaluator"><a class="header" href="#hardlabelevaluator">HardLab
182182
custom_val_trans = None,
183183
device: str = "cuda"
184184
)
185-
<a href="https://github.com/NUS-HPC-AI-Lab/DD-Ranking/blob/main/dd_ranking/metrics/hard_label.py"><strong>[SOURCE]</strong></a></p>
185+
<a href="https://github.com/NUS-HPC-AI-Lab/DD-Ranking/blob/main/ddranking/metrics/hard_label.py"><strong>[SOURCE]</strong></a></p>
186186
</div>
187187
<p>A class for evaluating the performance of a dataset distillation method with hard labels. User is able to modify the attributes as needed.</p>
188188
<h3 id="parameters"><a class="header" href="#parameters">Parameters</a></h3>

book/metrics/soft-label.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ <h2 id="softlabelevaluator"><a class="header" href="#softlabelevaluator">SoftLab
187187
custom_val_trans: Optional[Callable]=None,
188188
device: str="cuda"
189189
)
190-
<a href="https://github.com/NUS-HPC-AI-Lab/DD-Ranking/blob/main/dd_ranking/metrics/soft_label.py"><strong>[SOURCE]</strong></a></p>
190+
<a href="https://github.com/NUS-HPC-AI-Lab/DD-Ranking/blob/main/ddranking/metrics/soft_label.py"><strong>[SOURCE]</strong></a></p>
191191
</div>
192192
<p>A class for evaluating the performance of a dataset distillation method with soft labels. User is able to modify the attributes as needed.</p>
193193
<h3 id="parameters"><a class="header" href="#parameters">Parameters</a></h3>

book/models/alexnet.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,11 @@ <h1 class="menu-title">DD-Ranking API Documentation</h1>
155155
<div id="content" class="content">
156156
<main>
157157
<h2 id="alexnet"><a class="header" href="#alexnet">AlexNet</a></h2>
158-
<p>Our <a href="https://github.com/NUS-HPC-AI-Lab/DD-Ranking/blob/main/dd_ranking/utils/networks.py">implementation</a> of ConvNet is based on <a href="https://github.com/VICO-UoE/DatasetCondensation">DC</a>.</p>
158+
<p>Our <a href="https://github.com/NUS-HPC-AI-Lab/DD-Ranking/blob/main/ddranking/utils/networks.py">implementation</a> of ConvNet is based on <a href="https://github.com/VICO-UoE/DatasetCondensation">DC</a>.</p>
159159
<p>We provide the following interface to initialize a AlexNet model:</p>
160160
<div style="background-color:#F7F7F7; padding:15px; border:1px solid #E0E0E0; border-top:3px solid #FF0000; font-family:monospace; font-size:14px;">
161-
<p>dd_ranking.utils.get_alexnet(model_name: str, im_size: tuple, channel: int, num_classes: int, pretrained: bool, model_path: str)
162-
<a href="https://github.com/NUS-HPC-AI-Lab/DD-Ranking/blob/main/dd_ranking/utils/model.py"><strong>[SOURCE]</strong></a></p>
161+
<p>ddranking.utils.get_alexnet(model_name: str, im_size: tuple, channel: int, num_classes: int, pretrained: bool, model_path: str)
162+
<a href="https://github.com/NUS-HPC-AI-Lab/DD-Ranking/blob/main/ddranking/utils/model.py"><strong>[SOURCE]</strong></a></p>
163163
</div>
164164
<h3 id="parameters"><a class="header" href="#parameters">Parameters</a></h3>
165165
<ul>

book/models/convnet.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,12 @@ <h1 class="menu-title">DD-Ranking API Documentation</h1>
155155
<div id="content" class="content">
156156
<main>
157157
<h2 id="convnet"><a class="header" href="#convnet">ConvNet</a></h2>
158-
<p>Our <a href="https://github.com/NUS-HPC-AI-Lab/DD-Ranking/blob/main/dd_ranking/utils/networks.py">implementation</a> of ConvNet is based on <a href="https://github.com/VICO-UoE/DatasetCondensation">DC</a>.</p>
158+
<p>Our <a href="https://github.com/NUS-HPC-AI-Lab/DD-Ranking/blob/main/ddranking/utils/networks.py">implementation</a> of ConvNet is based on <a href="https://github.com/VICO-UoE/DatasetCondensation">DC</a>.</p>
159159
<p>By default, we use width 128, average pooling, and ReLU activation. We provide the following interface to initialize a ConvNet model:</p>
160160
<div style="background-color:#F7F7F7; padding:15px; border:1px solid #E0E0E0; border-top:3px solid #FF0000; font-family:monospace; font-size:14px;">
161161
<p>dd_ranking.utils.get_convnet(model_name: str,
162162
im_size: tuple, channel: int, num_classes: int, net_depth: int, net_norm: str, pretrained: bool, model_path: str)
163-
<a href="https://github.com/NUS-HPC-AI-Lab/DD-Ranking/blob/main/dd_ranking/utils/model.py"><strong>[SOURCE]</strong></a></p>
163+
<a href="https://github.com/NUS-HPC-AI-Lab/DD-Ranking/blob/main/ddranking/utils/model.py"><strong>[SOURCE]</strong></a></p>
164164
</div>
165165
<h3 id="parameters"><a class="header" href="#parameters">Parameters</a></h3>
166166
<ul>

book/models/lenet.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,11 @@ <h1 class="menu-title">DD-Ranking API Documentation</h1>
155155
<div id="content" class="content">
156156
<main>
157157
<h2 id="lenet"><a class="header" href="#lenet">LeNet</a></h2>
158-
<p>Our <a href="https://github.com/NUS-HPC-AI-Lab/DD-Ranking/blob/main/dd_ranking/utils/networks.py">implementation</a> of LeNet is based on <a href="https://github.com/VICO-UoE/DatasetCondensation">DC</a>.</p>
158+
<p>Our <a href="https://github.com/NUS-HPC-AI-Lab/DD-Ranking/blob/main/ddranking/utils/networks.py">implementation</a> of LeNet is based on <a href="https://github.com/VICO-UoE/DatasetCondensation">DC</a>.</p>
159159
<p>We provide the following interface to initialize a LeNet model:</p>
160160
<div style="background-color:#F7F7F7; padding:15px; border:1px solid #E0E0E0; border-top:3px solid #FF0000; font-family:monospace; font-size:14px;">
161-
<p>dd_ranking.utils.get_lenet(model_name: str, im_size: tuple, channel: int, num_classes: int, pretrained: bool, model_path: str)
162-
<a href="https://github.com/NUS-HPC-AI-Lab/DD-Ranking/blob/main/dd_ranking/utils/model.py"><strong>[SOURCE]</strong></a></p>
161+
<p>ddranking.utils.get_lenet(model_name: str, im_size: tuple, channel: int, num_classes: int, pretrained: bool, model_path: str)
162+
<a href="https://github.com/NUS-HPC-AI-Lab/DD-Ranking/blob/main/ddranking/utils/model.py"><strong>[SOURCE]</strong></a></p>
163163
</div>
164164
<h3 id="parameters"><a class="header" href="#parameters">Parameters</a></h3>
165165
<ul>

0 commit comments

Comments
 (0)