Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken "source" link on torchmetrics.Metric #2739

Closed
michael-s-crouch opened this issue Sep 12, 2024 · 2 comments · Fixed by #2740
Closed

Broken "source" link on torchmetrics.Metric #2739

michael-s-crouch opened this issue Sep 12, 2024 · 2 comments · Fixed by #2740
Labels
documentation Improvements or additions to documentation

Comments

@michael-s-crouch
Copy link

On https://lightning.ai/docs/torchmetrics/stable/references/metric.html , the "Source" link on class
torchmetrics.Metric(**kwargs) (near the top of the page) links to https://github.com/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/torchmetrics/metric.py#L51-L1115 , but this is a 404.

@michael-s-crouch michael-s-crouch added the documentation Improvements or additions to documentation label Sep 12, 2024
Copy link

Hi! thanks for your contribution!, great first issue!

@Borda
Copy link
Member

Borda commented Sep 12, 2024

the problem seems to be with relative path:
<a class="reference external" href="[https://github.com/Lightning-AI/torchmetrics/blob/master/../../../../../opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/torchmetrics/metric.py#L709-L711](https://github.com/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/torchmetrics/metric.py#L709-L711)"><span class="viewcode-link"><span class="pre">[source]</span></span></a>
but compiled locally I get:
<a class="reference external" href="[https://github.com/Lightning-AI/torchmetrics/blob/master/src/torchmetrics/clustering/adjusted_mutual_info_score.py#L90-L128](view-source:https://github.com/Lightning-AI/torchmetrics/blob/master/src/torchmetrics/clustering/adjusted_mutual_info_score.py#L90-L128)"><span class="viewcode-link"><span class="pre">[source]</span></span></a>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants