Skip to content

Commit 0dbc603

Browse files
fix incompatible domains in over/under fitting plots in cls2
1 parent 2f70a5e commit 0dbc603

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/classification2.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1381,17 +1381,17 @@ cancer_plot = (
13811381
"Smoothness",
13821382
scale=alt.Scale(
13831383
domain=(
1384-
cancer_train["Smoothness"].min(),
1385-
cancer_train["Smoothness"].max(),
1384+
cancer_train["Smoothness"].min() * 0.95,
1385+
cancer_train["Smoothness"].max() * 1.05,
13861386
)
13871387
),
13881388
),
13891389
y=alt.Y(
13901390
"Concavity",
13911391
scale=alt.Scale(
13921392
domain=(
1393-
cancer_train["Concavity"].min(),
1394-
cancer_train["Concavity"].max(),
1393+
cancer_train["Concavity"].min() -0.025,
1394+
cancer_train["Concavity"].max() * 1.05,
13951395
)
13961396
),
13971397
),

0 commit comments

Comments
 (0)