🌐 [translation-sync] [hansen_singleton_1983.md] Update np.random → Generator API - #226
🌐 [translation-sync] [hansen_singleton_1983.md] Update np.random → Generator API#226mmcky 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-31 📝 Translation Quality
Summary: The 'Likelihood implementation' section is translated accurately and fluently, with correct handling of technical terminology (likelihood, residuals, covariance matrix, Jacobian, OPG standard errors, etc.) and full preservation of code blocks, math, and MyST formatting. No syntax errors or accuracy issues were found; only very minor stylistic nits could be considered for further polish. The dense mathematical/statistical prose in the 'Likelihood implementation' section is translated with precise and consistent terminology (对数似然、残差、协方差矩阵、雅可比 etc.), matching the glossary and prior sections. All code comments and docstrings within the changed section are fully and accurately translated while preserving code structure and functionality. Math notation, equation labels, and MyST cross-references (e.g., {eq} Suggestions:
🔍 Diff Quality
Summary: The translation sync correctly mirrors the source's np.random.default_rng refactor and blank-line removal, with no scope or structural issues, aside from one minor unrelated wording tweak. Issues:
This review was generated automatically by action-translation review mode. |
There was a problem hiding this comment.
Pull request overview
This PR syncs the zh-cn translation of hansen_singleton_1983.md with upstream changes that migrate NumPy RNG usage from the legacy global np.random API to the Generator (default_rng) API, and updates the translation sync state metadata accordingly.
Changes:
- Updated the lecture’s simulation code to use
rng = np.random.default_rng(seed)andrng.multivariate_normal(...)instead of the globalnp.randomstate. - Minor markdown text/whitespace adjustments in the lecture content.
- Updated
.translate/state/hansen_singleton_1983.md.ymlto reflect the new source SHA, model, sync date, and tool version.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| lectures/hansen_singleton_1983.md | Switches simulation randomness to Generator API; includes a small translated-text wording change. |
| .translate/state/hansen_singleton_1983.md.yml | Updates translation sync metadata (source SHA/date/model/mode/tool version). |
💡 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
#974 - [hansen_singleton_1983.md] Update np.random → Generator API
Files Updated
lectures/hansen_singleton_1983.md.translate/state/hansen_singleton_1983.md.ymlDetails
This PR was created automatically by the translation action.