-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage3.R
31 lines (31 loc) · 1.54 KB
/
page3.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
div(id = "page3",
sidebarPanel(id = "page3_sidebar",
h3("Model building using xgboost"),
radioButtons("rb_model", label = "", choices = c("xgboost")),
withBusyIndicatorUI(
actionButton("btn_go", "Build model", class = "btn-primary")
),
conditionalPanel(condition = "input.rb_model == 'xgboost'",
h4("xgboost parameters"),
wellPanel(
fluidRow(
h4("Tree booster parameters"),
column(6,
sliderInput("sld_eta", "eta", min = 0, max = 1, value = 0.3, step = 0.01),
sliderInput("sld_gamma", "gamma", min = 0, max = 100, value = 5, step = 1),
sliderInput("sld_max_depth", "max depth", min = 0, max = 50, value = 6, step = 1),
sliderInput("sld_nrounds", "n rounds", min = 20, max = 500, value = 100, step = 1)
),
column(6,
sliderInput("sld_min_child_weight", "min child weight", min = 0, max = 400, value = 100),
sliderInput("sld_subsample", "subsample", min = 0, max = 1, value = 0.8, step = 0.01),
sliderInput("sld_colsample", "colsample by tree", min = 0, max = 1, value = 0.8, step = 0.01)
)
)
)
)
),
mainPanel(
uiOutput("ui_main")
)
)