Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .translate/state/os_time_iter.md.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source-sha: 5efda5424e302d1d87c0d361b123177b842e23bc
synced-at: "2026-07-22"
model: claude-opus-4-8
mode: NEW
source-sha: b2551d1fb20b5f846017a800a3b8106a4e644f0a
synced-at: "2026-07-31"
model: claude-sonnet-5
mode: UPDATE
section-count: 4
tool-version: 0.20.0
tool-version: 0.24.0
7 changes: 3 additions & 4 deletions lectures/os_time_iter.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ $$

下面给出示例。


## 实现

让我们转向实现。
Expand Down Expand Up @@ -324,8 +323,8 @@ def create_model(
grid = np.linspace(1e-4, grid_max, grid_size)

# 存储冲击(使用种子,以便结果可复现)
np.random.seed(seed)
shocks = np.exp(μ + ν * np.random.randn(shock_size))
rng = np.random.default_rng(seed)
shocks = np.exp(μ + ν * rng.standard_normal(shock_size))

return Model(u, f, β, μ, ν, grid, shocks, α, u_prime, f_prime)
```
Expand Down Expand Up @@ -556,4 +555,4 @@ plt.show()
```

```{solution-end}
```
```
Loading