Skip to content

Commit 8e614f4

Browse files
committed
docs(weave): fix broken relref links in Japanese and Korean media guides
1 parent 93c7c4f commit 8e614f4

13 files changed

Lines changed: 1339 additions & 6 deletions

.cache/redirect_sanitizer.sqlite

160 KB
Binary file not shown.

404_analysis_summary.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# 404 Analysis Summary
2+
3+
## Overview
4+
Analyzing Google Search Console 404 report from `~/Downloads/404s - Table (1).csv` to identify legitimate redirects vs noise.
5+
6+
## Files Generated
7+
- `_redirects_from_suggestions` - Valid redirects found (360 out of 1000 tested)
8+
- `failed_redirects.csv` - URLs that failed validation (640 out of 1000 tested)
9+
- `.cache/redirect_sanitizer.sqlite` - Cache database from the main sanitize script
10+
11+
## Key Findings
12+
13+
### Main Sanitize Script Results
14+
- **Very conservative approach** - marked all URLs as "no_evidence"
15+
- Script requires Wayback Machine evidence or git history to create redirects
16+
- Processed 50 URLs: 0 redirects, 48 for review, 2 filtered out
17+
- This suggests the script is being overly cautious for this dataset
18+
19+
### Direct CSV Processing Results
20+
- **Much more productive** - found 360 valid redirects out of 1000 URLs tested
21+
- Uses suggested URLs from CSV as starting points
22+
- Validates that suggested targets actually work (return 200 status)
23+
- Success rate: 36% (360/1000)
24+
25+
### Data Quality Observations
26+
1. **Mixed quality data** - some legitimate URLs, some spam (FIFA coins, etc.)
27+
2. **Suggested URLs work** - many of the suggested redirects in the CSV are valid
28+
3. **Language variations** - many URLs are for Japanese (ja) and Korean (ko) versions
29+
4. **Common patterns** - many redirect to `/support/`, `/guides/`, or language-specific guides
30+
31+
## Next Steps
32+
1. Review the 360 valid redirects in `_redirects_from_suggestions`
33+
2. Check the failed URLs in `failed_redirects.csv` for any false negatives
34+
3. Consider running the full dataset (1171 URLs total)
35+
4. Potentially modify the main sanitize script to be less conservative
36+
37+
## Commands Used
38+
```bash
39+
# Set up environment
40+
python3 -m venv venv
41+
source venv/bin/activate
42+
pip install requests
43+
44+
# Run main sanitize script (conservative)
45+
python scripts/sanitize_404s.py --input "/Users/matt.linville/Downloads/404s - Table (1).csv" --out-redirects _redirects_test --out-review needs_review_test.csv --owned-hosts "docs.wandb.ai" --dry-run-limit 5
46+
47+
# Run direct CSV processing (more productive)
48+
python process_404s_direct.py
49+
```
50+
51+
## Files to Review
52+
- `_redirects_from_suggestions` - The good redirects found
53+
- `failed_redirects.csv` - URLs that need manual review
54+
- `needs_review_test.csv` - Results from conservative script
55+
56+
## Environment
57+
- Working directory: `/Users/matt.linville/docs`
58+
- Virtual environment: `venv/` (activated)
59+
- Python script: `process_404s_direct.py` (custom script for direct CSV processing)

_redirects_candidates

Whitespace-only changes.

_redirects_from_suggestions

Lines changed: 360 additions & 0 deletions
Large diffs are not rendered by default.

_redirects_large

Whitespace-only changes.

_redirects_test

Whitespace-only changes.

content/ja/guides/models/track/log/media.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ images = wandb.Image(image_array, caption="Top: Output, Bottom: Input")
5252
wandb.log({"examples": images})
5353
```
5454

55-
最後の次元が1の場合はグレースケール、3の場合はRGB、4の場合はRGBAと仮定します。配列が浮動小数点数を含む場合、正規化アルゴリズムを使用して自動的に`0`から`255`の整数に変換します。PyTorchテンソルとNumPy配列での正規化の動作についての詳細は、[Imageリファレンスの画像正規化セクション]({{< relref path="/ref/python/sdk/data-types/image.md#image-normalization" lang="ja" >}})を参照してください。異なる方法で画像を正規化したい場合は[`mode`](https://pillow.readthedocs.io/en/stable/handbook/concepts.html#modes)を手動で指定するか、`"Logging PIL Images"`タブで説明されているように、単に[`PIL.Image`](https://pillow.readthedocs.io/en/stable/reference/Image.html)を提供することができます。
55+
最後の次元が1の場合はグレースケール、3の場合はRGB、4の場合はRGBAと仮定します。配列が浮動小数点数を含む場合、正規化アルゴリズムを使用して自動的に`0`から`255`の整数に変換します。PyTorchテンソルとNumPy配列での正規化の動作についての詳細は、[Imageリファレンスの画像正規化セクション]({{< relref path="/ref/python/data-types/image.md#image-normalization" lang="ja" >}})を参照してください。異なる方法で画像を正規화したい場合は[`mode`](https://pillow.readthedocs.io/en/stable/handbook/concepts.html#modes)を手動で指定するか、`"Logging PIL Images"`タブで説明されているように、単に[`PIL.Image`](https://pillow.readthedocs.io/en/stable/reference/Image.html)を提供することができます。
5656
{{% /tab %}}
5757
{{% tab header="PIL Imagesをログする" %}}
5858
配列から画像への変換を完全に制御するために、[`PIL.Image`](https://pillow.readthedocs.io/en/stable/reference/Image.html)を自分で構築し、直接提供してください。
@@ -564,7 +564,7 @@ runが終了すると、UIで分子の3D可視化と対話できるようにな
564564

565565
### PNG 画像
566566

567-
[`wandb.Image`]({{< relref path="/ref/python/data-types/image.md" lang="ja" >}})`numpy`配列や`PILImage`のインスタンスをデフォルトでPNGに変換します。
567+
`wandb.Image``numpy`配列や`PILImage`のインスタンスをデフォルトでPNGに変換します。
568568

569569
```python
570570
wandb.log({"example": wandb.Image(...)})
@@ -584,7 +584,7 @@ wandb.log({"example": wandb.Video("myvideo.mp4")})
584584

585585
## 分子の2Dビュー
586586

587-
[`wandb.Image`]({{< relref path="/ref/python/data-types/image.md" lang="ja" >}})データ型と[`rdkit`](https://www.rdkit.org/docs/index.html)を使用して分子の2Dビューをログできます:
587+
[`wandb.Image`]({{< relref "/ref/python/data-types/image.md" >}})データ型と[`rdkit`](https://www.rdkit.org/docs/index.html)を使用して分子の2Dビューをログできます:
588588

589589
```python
590590
molecule = rdkit.Chem.MolFromSmiles("CC(=O)O")

content/ko/guides/models/track/log/media.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ images = wandb.Image(image_array, caption="Top: Output, Bottom: Input")
5353
wandb.log({"examples": images})
5454
```
5555

56-
마지막 차원이 1이면 이미지가 회색조, 3이면 RGB, 4이면 RGBA라고 가정합니다. 배열에 float가 포함된 경우 정규화 알고리즘을 사용하여 자동으로 `0``255` 사이의 정수로 변환합니다. PyTorch 텐서와 NumPy 배열에서 정규화가 어떻게 작동하는지에 대한 자세한 정보는 [Image 참조의 이미지 정규화 섹션]({{< relref path="/ref/python/sdk/data-types/image.md#image-normalization" lang="ko" >}})을 참조하세요. 이미지를 다르게 정규화하려면 [`mode`](https://pillow.readthedocs.io/en/stable/handbook/concepts.html#modes)를 수동으로 지정하거나 이 패널의 "PIL 이미지 로깅" 탭에 설명된 대로 [`PIL.Image`](https://pillow.readthedocs.io/en/stable/reference/Image.html)를 제공하면 됩니다.
56+
마지막 차원이 1이면 이미지가 회색조, 3이면 RGB, 4이면 RGBA라고 가정합니다. 배열에 float가 포함된 경우 정규화 알고리즘을 사용하여 자동으로 `0``255` 사이의 정수로 변환합니다. PyTorch 텐서와 NumPy 배열에서 정규화가 어떻게 작동하는지에 대한 자세한 정보는 Image 참조 문서를 참조하세요. 이미지를 다르게 정규화하려면 [`mode`](https://pillow.readthedocs.io/en/stable/handbook/concepts.html#modes)를 수동으로 지정하거나 이 패널의 "PIL 이미지 로깅" 탭에 설명된 대로 [`PIL.Image`](https://pillow.readthedocs.io/en/stable/reference/Image.html)를 제공하면 됩니다.
5757
{{% /tab %}}
5858
{{% tab header="PIL 이미지 로깅" %}}
5959
배열을 이미지로 변환하는 것을 완벽하게 제어하려면 [`PIL.Image`](https://pillow.readthedocs.io/en/stable/reference/Image.html)를 직접 구성하여 제공합니다.
@@ -557,7 +557,7 @@ run이 완료되면 UI에서 분자의 3D 시각화와 상호 작용할 수 있
557557

558558
### PNG 이미지
559559

560-
[`wandb.Image`]({{< relref path="/ref/python/data-types/image.md" lang="ko" >}})`numpy` 배열 또는 `PILImage` 인스턴스를 기본적으로 PNG로 변환합니다.
560+
`wandb.Image``numpy` 배열 또는 `PILImage` 인스턴스를 기본적으로 PNG로 변환합니다.
561561

562562
```python
563563
wandb.log({"example": wandb.Image(...)})
@@ -577,7 +577,7 @@ wandb.log({"example": wandb.Video("myvideo.mp4")})
577577

578578
## 분자의 2D 보기
579579

580-
[`wandb.Image`]({{< relref path="/ref/python/data-types/image.md" lang="ko" >}}) 데이터 유형과 [`rdkit`](https://www.rdkit.org/docs/index.html)을 사용하여 분자의 2D 보기를 기록할 수 있습니다.
580+
[`wandb.Image`]({{< relref "/ref/python/data-types/image.md" >}}) 데이터 유형과 [`rdkit`](https://www.rdkit.org/docs/index.html)을 사용하여 분자의 2D 보기를 기록할 수 있습니다.
581581

582582
```python
583583
molecule = rdkit.Chem.MolFromSmiles("CC(=O)O")

0 commit comments

Comments
 (0)