Skip to content

Commit 5b4bbac

Browse files
committed
Round to one decimal to reduce noise
1 parent 1cb4cf5 commit 5b4bbac

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

source/inference.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -1177,8 +1177,8 @@ ci_bounds
11771177
```{code-cell} ipython3
11781178
:tags: [remove-cell]
11791179
1180-
glue("ci_lower", round(ci_bounds[0.025], 2))
1181-
glue("ci_upper", round(ci_bounds[0.975], 2))
1180+
glue("ci_lower", round(ci_bounds[0.025], 1))
1181+
glue("ci_upper", round(ci_bounds[0.975], 1))
11821182
```
11831183

11841184
Our interval, \${glue:}`ci_lower` to \${glue:}`ci_upper`, captures
@@ -1192,14 +1192,15 @@ alt.layer(
11921192
alt.Chart().mark_text(color='#f58518', size=12, fontWeight='bold').encode(
11931193
x=alt.datum(ci_bounds[0.025]),
11941194
y=alt.value(-10),
1195-
text=alt.datum(f'2.5th percentile ({ci_bounds[0.025].round(2)})')
1195+
text=alt.datum(f'2.5th percentile ({ci_bounds[0.025].round(1)})')
11961196
),
11971197
alt.Chart().mark_rule(color='#f58518', size=3, strokeDash=[5]).encode(x=alt.datum(ci_bounds[0.975])),
11981198
alt.Chart().mark_text(color='#f58518', size=12, fontWeight='bold').encode(
11991199
x=alt.datum(ci_bounds[0.975]),
12001200
y=alt.value(-10),
1201-
text=alt.datum(f'97.5th percentile ({ci_bounds[0.975].round(2)})')
1202-
)
1201+
text=alt.datum(f'97.5th percentile ({ci_bounds[0.975].round(1)})')
1202+
),
1203+
width=500
12031204
)
12041205
```
12051206

0 commit comments

Comments
 (0)