Skip to content

Commit ffe3e99

Browse files
Merge pull request #268 from tidymodels/more-get_labs-updates
2 parents 2e158fd + d72bbae commit ffe3e99

File tree

1 file changed

+131
-10
lines changed

1 file changed

+131
-10
lines changed

tests/testthat/_snaps/survival-tune-autoplot.md

Lines changed: 131 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,102 @@
6868
[1] ""
6969
7070

71+
# autoplot-ting survival models with integrated metric
72+
73+
Code
74+
ggplot2::get_labs(int_grid)
75+
Output
76+
$colour
77+
`Proportion of Lasso Penalty`
78+
79+
$x.sec
80+
NULL
81+
82+
$x
83+
[1] "Amount of Regularization"
84+
85+
$y
86+
[1] "brier_survival_integrated"
87+
88+
$y.sec
89+
NULL
90+
91+
$group
92+
[1] "Proportion of Lasso Penalty"
93+
94+
$alt
95+
[1] ""
96+
97+
98+
---
99+
100+
Code
101+
ggplot2::get_labs(int_marginal)
102+
Output
103+
$x.sec
104+
NULL
105+
106+
$x
107+
[1] ""
108+
109+
$y
110+
[1] "brier_survival_integrated"
111+
112+
$y.sec
113+
NULL
114+
115+
$alt
116+
[1] ""
117+
118+
119+
---
120+
121+
Code
122+
ggplot2::get_labs(int_perf)
123+
Output
124+
$x.sec
125+
NULL
126+
127+
$x
128+
[1] "Iteration"
129+
130+
$y
131+
[1] "brier_survival_integrated"
132+
133+
$y.sec
134+
NULL
135+
136+
$ymin
137+
[1] "mean - const * std_err"
138+
139+
$ymax
140+
[1] "mean + const * std_err"
141+
142+
$alt
143+
[1] ""
144+
145+
146+
---
147+
148+
Code
149+
ggplot2::get_labs(int_param)
150+
Output
151+
$x.sec
152+
NULL
153+
154+
$x
155+
[1] "Iteration"
156+
157+
$y
158+
[1] ""
159+
160+
$y.sec
161+
NULL
162+
163+
$alt
164+
[1] ""
165+
166+
71167
# autoplot-ting survival models with dynamic metric
72168

73169
Code
@@ -82,11 +178,23 @@
82178
---
83179

84180
Code
85-
dyn_mult_param <- autoplot(bayes_dynamic_res, type = "parameters", eval_time = c(
86-
10, 15))
87-
Condition
88-
Warning:
89-
`eval_time` is not used with `autoplot(..., type = 'parameters')`.
181+
ggplot2::get_labs(dyn_grid)
182+
Output
183+
$x.sec
184+
NULL
185+
186+
$x
187+
[1] ""
188+
189+
$y
190+
[1] "brier_survival @10"
191+
192+
$y.sec
193+
NULL
194+
195+
$alt
196+
[1] ""
197+
90198

91199
---
92200

@@ -258,11 +366,24 @@
258366
---
259367

260368
Code
261-
mix_mult_param <- autoplot(bayes_mixed_res, type = "parameters", eval_time = c(
262-
10, 15))
263-
Condition
264-
Warning:
265-
`eval_time` is not used with `autoplot(..., type = 'parameters')`.
369+
ggplot2::get_labs(mix_grid)
370+
Output
371+
$x.sec
372+
NULL
373+
374+
$x
375+
tree_depth
376+
"Tree Depth"
377+
378+
$y
379+
[1] ""
380+
381+
$y.sec
382+
NULL
383+
384+
$alt
385+
[1] ""
386+
266387

267388
---
268389

0 commit comments

Comments
 (0)