[action-translation] resync: mccall_model.md#133
Conversation
✅ Deploy Preview for astonishing-narwhal-a8fc64 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Pull request overview
This PR forward-resyncs the Chinese translation of mccall_model.md to match the current upstream lecture, including the newer JAX-based implementation and the added “Volatility” section, and records the sync state metadata.
Changes:
- Resynced
lectures/mccall_model.mdto the upstream structure/content (JAX-based code path, updated sections/exercises, GPU admonition, volatility analysis). - Added translation sync state file
.translate/state/mccall_model.md.ymlwith source SHA and sync metadata.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| lectures/mccall_model.md | Whole-file resync of the translated lecture content and embedded code cells to the updated upstream version (JAX + new sections). |
| .translate/state/mccall_model.md.yml | Records resync metadata (source SHA, sync date, mode, model/tool versions). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| c, β, w, q = model | ||
| i = 0 | ||
| error = tol + 1 | ||
| v = v_init | ||
|
|
||
| while i < max_iter and error > tol: | ||
| v_next = T(model, v) | ||
| error = jnp.max(jnp.abs(v_next - v)) | ||
| v = v_next | ||
| i += 1 |
| 为了证明这一点,我们将: | ||
|
|
||
| 1. 计算每个波动性水平下的保留工资 | ||
| 3. 利用蒙特卡洛方法,计算与该保留工资相关的终身收入流的预期折现价值。 |
| import matplotlib.pyplot as plt | ||
| import matplotlib as mpl | ||
| FONTPATH = "fonts/SourceHanSerifSC-SemiBold.otf" | ||
| mpl.font_manager.fontManager.addfont(FONTPATH) | ||
| plt.rcParams['font.family'] = ['Source Han Serif SC'] | ||
|
|
||
| plt.rcParams["figure.figsize"] = (11, 5) #设置默认图片尺寸 | ||
| import numpy as np | ||
| from numba import jit, float64 | ||
| from numba.experimental import jitclass | ||
| import numba | ||
| import jax | ||
| import jax.numpy as jnp |
The resynced file keeps Chinese plot labels but reverted the import cell to the source's exact form, losing the Source Han Serif setup - Chinese in figures would render as missing glyphs. Residual #107 class found in the merge review; applied wave-wide. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
✅ Translation Quality ReviewVerdict: PASS | Model: claude-sonnet-5 | Date: 2026-07-18 📝 Translation Quality
Summary: 整体翻译质量优秀,准确传达了原文的经济学和数学概念,术语使用规范一致,代码块和公式格式保留完好。发现的问题主要是细节性的(如链接来源、格式细微差异),不影响整体理解和技术准确性。 数学公式和LaTeX代码块完整保留,编号引用(如{eq} Suggestions:
🔍 Diff Quality
Summary: The target document was correctly resynced to match the current English source, with all new sections, code changes (Numba to JAX), removed exercise, and heading metadata properly translated and positioned. This review was generated automatically by action-translation review mode. |
…anslation#116) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Forward Resync: mccall_model.md
Source: QuantEcon/lecture-python.myst — lectures/mccall_model.md
Source commit:
0bfcac8This PR resyncs the translation to match the current source document.
Reason: The target is based on an entirely older version of this lecture (using Numba/jitclass instead of JAX, different code structure, older exercise sets). It contains substantial content not in source: full 'Exercise 2' with continuous distribution solution using jitclass, additional explanatory text, different exercise parameters, etc. Meanwhile it's missing major sections present in source: the entire 'Volatility' section (mean-preserving spread, lifetime value and volatility analysis), the JAX-based implementation details, comparative statics with jitted functions, and updated GPU admonition include. Since target has unique content not in source, TARGET_HAS_ADDITIONS takes priority, though there are also many CONTENT_CHANGES (missing volatility section, different library/approach, different exercise solutions).
Changes
Whole-file resync applied. The entire document was resynced in a single pass.
Created by action-translation forward resync