Repository navigation
Commit b45b728
README: replace quickstart with verified-working code
The previous quickstart was paraphrased from the paper's Listing 1 and
contained several bugs: undefined Weibull(), non-existent module-level
`model` reference, and jax.grad(ll) where ll was a scalar value rather
than a function. None of it ran.
Replace with two runnable blocks:
(1) Two-level nested Frank with Uniform leaves. Demonstrates
@copula, @defmodel, marginal, log_likelihood, and parameter
gradients via jax.grad over a closure. Verified end-to-end with
the actual installed package.
(2) Same model with Weibull marginals and a per-leaf censoring flag,
showing the survival-data pattern. Includes the float64 hint
needed because tfp distributions default to float32 but acopula
enables jax_enable_x64 at import time.
Drop the "Conditional sampling" feature claim — sampling is currently
broken in the installed code (oryx Talbot evaluation feeds complex
inputs through real-valued grad). To be re-added once the underlying
path is fixed.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent abce343 commit b45b728
1 file changed
Lines changed: 48 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
36 | | - | |
| 40 | + | |
37 | 41 | | |
38 | 42 | | |
39 | | - | |
| 43 | + | |
40 | 44 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
46 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
47 | 75 | | |
48 | | - | |
49 | | - | |
50 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
51 | 81 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
62 | 85 | | |
63 | 86 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
70 | 92 | | |
71 | 93 | | |
72 | 94 | | |
| |||
77 | 99 | | |
78 | 100 | | |
79 | 101 | | |
80 | | - | |
81 | | - | |
82 | 102 | | |
83 | 103 | | |
84 | 104 | | |
| |||
0 commit comments