🌐 [translation-sync] [two_auctions.md] Update np.random → Generator API - #211
🌐 [translation-sync] [two_auctions.md] Update np.random → Generator API#211mmcky wants to merge 2 commits into
Conversation
✅ Deploy Preview for astonishing-narwhal-a8fc64 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Translation Quality ReviewVerdict: PASS | Model: claude-sonnet-5 | Date: 2026-07-28 📝 Translation Quality
Summary: 翻译整体质量较高,准确传达了原文关于一价和二价拍卖的经济学概念、数学推导和Python代码逻辑,术语使用基本规范且与术语表保持一致。主要问题集中在代码注释的双语重复处理略显冗余,以及部分标题中'一价/二价'与'第一价格/第二价格'表述交替使用可能造成轻微的术语不统一,但均属于次要问题,不影响读者理解核心内容。 数学公式、LaTeX 标记和代码块结构完整保留,未破坏 MyST 语法 专业术语(如贝叶斯纳什均衡、收益等价定理、密封投标拍卖)翻译准确且大体符合术语表 表格内容翻译清晰,保留了原文的逻辑结构和对比关系 标点符号基本遵循全角中文标点规范 Suggestions:
🔍 Diff Quality
Summary: The RNG API migration (np.random.seed/np.random.X to rng = np.random.default_rng()/rng.X) and jupytext_version bump were correctly and completely mirrored in the target document at matching positions, with no unrelated changes. This review was generated automatically by action-translation review mode. |
There was a problem hiding this comment.
Pull request overview
This automated translation-sync PR updates the Chinese two_auctions lecture to match upstream changes that migrate randomness from the legacy np.random.* global API to NumPy’s Generator API (default_rng), keeping randomness deterministic via a fixed seed.
Changes:
- Replaced
np.random.seed(...)+np.random.<dist>(...)usage withrng = np.random.default_rng(...)+rng.<dist>(...)in the lecture code cells. - Updated Jupytext metadata version in the lecture frontmatter.
- Updated translation sync state metadata (
source-sha,synced-at, mode, tool version).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
lectures/two_auctions.md |
Switches random draws to a seeded Generator (rng) to align with upstream np.random → Generator migration. |
.translate/state/two_auctions.md.yml |
Updates translation-sync bookkeeping to the new upstream source SHA and sync timestamp. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Automated Translation Sync
This PR contains automated translations from QuantEcon/lecture-python.myst.
Source PR
#960 - [two_auctions.md] Update np.random → Generator API
Files Updated
lectures/two_auctions.md.translate/state/two_auctions.md.ymlDetails
This PR was created automatically by the translation action.