Skip to content

Commit

Permalink
Use arxiv friendly template
Browse files Browse the repository at this point in the history
  • Loading branch information
jayanthkoushik committed Jul 26, 2023
1 parent 90cac9d commit f7fc91f
Show file tree
Hide file tree
Showing 40 changed files with 433 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ repos:
language: system
files: "paper/.*"
pass_filenames: false
entry: sh -c "(cd paper && pipx run --spec git+https://github.com/jayanthkoushik/shiny-mdc shinymdc -i main.md -o main.pdf -t stylish -m smalltabs=true,nonidan=true)"
entry: sh -c "(cd paper && pipx run --spec git+https://github.com/jayanthkoushik/shiny-mdc shinymdc -i main.md -o main.pdf -t template.tex --pdf-engine pdflatex)"
10 changes: 5 additions & 5 deletions paper/README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Building paper

<!-- cSpell:ignore pandoc, crossref, shiny-mdc -->

# Building paper

Building the paper requires a full TeX installation,
[pandoc](https://pandoc.org/),
[pandoc-crossref](https://lierdakil.github.io/pandoc-crossref/), and
[shiny-mdc](https://pypi.org/project/shiny-mdc/). Build using the
following command, from the `paper` directory:
[shiny-mdc](https://pypi.org/project/shiny-mdc/) (v1.9 or higher).
Build using the following command, from the `paper` directory:

<!-- cSpell: disable -->
```bash
shinymdc -i main.md -o main.pdf -t stylish -m smalltabs=true,nonidan=true
shinymdc -i main.md -o main.pdf -t template.tex --pdf-engine pdflatex
```
<!-- cSpell: enable -->
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added paper/figures/_arxiv/doggies.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added paper/figures/_arxiv/pipeline.pdf
Binary file not shown.
Binary file not shown.
8 changes: 4 additions & 4 deletions paper/main.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ abstract: Methods in long-tail learning focus on improving performance
find frequent classes that are closest to rare classes in the model's
representation space and learn weights to update rare class
classifiers with a linear combination of frequent class classifiers.
AlphaNet, applied on several models, greatly improves test accuracy
AlphaNet, applied to several models, greatly improves test accuracy
for rare classes in multiple long-tailed datasets, with very little
change to the overall accuracy. Our method also provides a way to
control the trade-off between rare class and overall accuracy, making
it practical for long-tail classification in the wild.
change to overall accuracy. Our method also provides a way to control
the trade-off between rare class and overall accuracy, making it
practical for long-tail classification in the wild.

bibliography: references.bib

Expand Down
Binary file modified paper/main.pdf
Binary file not shown.
11 changes: 6 additions & 5 deletions paper/sections/1_intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ misclassifications.](figures/doggies){#fig:analysis:egs}

![Per-class test accuracy of cRT model on 'few' split of ImageNet‑LT,
versus the mean Euclidean distance to 5 nearest neighbor (NN) 'base'
split classes. The line is a bootstrapped linear regression fit, and $r$
(top right) is Pearson correlation. There is a high correlation, i.e.,
'few' split classes with close 'base' split NNs are more likely to be
misclassified.](figures/cls_acc_vs_nndist_imagenetlt_crt_baseline){#fig:analysis:acc_vs_dist}
split classes. The line is a bootstrapped linear regression fit, and
'$r$' (top right) is Pearson correlation. There is a high correlation,
i.e., 'few' split classes with close 'base' split NNs are more likely to
be misclassified.](figures/cls_acc_vs_nndist_imagenetlt_crt_baseline){#fig:analysis:acc_vs_dist}

Analysis of 'few' split predictions on ImageNet‑LT.

Expand Down Expand Up @@ -95,7 +95,8 @@ rare class accuracy on multiple datasets.

[^note:ride_results]: Results for the 6-expert model are presented in
the GitHub repository for the original paper at
[`github.com/frank-xwang/RIDE-LongTailRecognition/blob/main/MODEL_ZOO.md`](https://github.com/frank-xwang/RIDE-LongTailRecognition/blob/main/MODEL_ZOO.md).
[`github.com/frank-xwang/
RIDE-LongTailRecognition/blob/main/MODEL_ZOO.md`](https://github.com/frank-xwang/RIDE-LongTailRecognition/blob/main/MODEL_ZOO.md).

[^note:base_split]: The 'base' split is the complement of the 'few'
split, composed of classes with many training samples.
6 changes: 3 additions & 3 deletions paper/sections/appendix/perclsdels.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ baseline](figures/appendix/rhos_cls_delta_vs_nndist_imagenetlt_ride){#fig:rhos_c
Change in per-class test accuracy on ImageNet‑LT, versus mean distance
to 5 nearest neighbors based on Euclidean distance. The neighbors are
from 'base' split for the 'few' split classes, and vice-versa for the
'base' split classes. The lines are regression fits, and the '$r$'s are
'base' split classes. The lines are regression fits, and the `$r$'s are
Pearson correlations.

</div>
Expand All @@ -139,7 +139,7 @@ baseline](figures/appendix/rhos_cls_delta_vs_nndist_placeslt_lws){#fig:rhos_cls_
Change in per-class test accuracy on Places‑LT, versus mean distance to
5 nearest neighbors based on Euclidean distance. The neighbors are from
'base' split for the 'few' split classes, and vice-versa for the 'base'
split classes. The lines are regression fits, and the '$r$'s are Pearson
split classes. The lines are regression fits, and the `$r$'s are Pearson
correlations.

</div>
Expand All @@ -157,7 +157,7 @@ baseline](figures/appendix/rhos_cls_delta_vs_nndist_cifarlt_ltr){#fig:rhos_cls_d
Change in per-class test accuracy on CIFAR‑100‑LT, versus mean distance
to 5 nearest neighbors based on Euclidean distance. The neighbors are
from 'base' split for the 'few' split classes, and vice-versa for the
'base' split classes. The lines are regression fits, and the '$r$'s are
'base' split classes. The lines are regression fits, and the `$r$'s are
Pearson correlations.

</div>
Expand Down

0 comments on commit f7fc91f

Please sign in to comment.