-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
93 lines (93 loc) · 2.28 KB
/
ui.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
shinyUI(
ui <- fluidPage(
# theme = "bootstrap.css",
# Title
titlePanel("Calibrating XGBOOST"),
fluidRow(column(width = 1, h6("[email protected]"))),
# Left Sidebar
sidebarPanel(
sliderInput(
inputId = "gamma",
label = "Gamma",
min = 0,
max = 1000,
value = 0),
sliderInput(
inputId = "min_child_weight",
label = "Min. Child Weight",
min = 0,
max = 100,
value = 0),
sliderInput(
inputId = "n_sample",
label = "Sample Size",
min = 2,
max = 10000,
value = 1000),
h6("Parameters"),
sliderInput(
inputId = "max_depth",
label = "Max. Depth",
min = 1,
max = 25,
value = 6),
numericInput(
inputId = "nrounds",
label = "Max. Number of Boosting Iterations",
value = 100,
min = 1,
max = 500),
numericInput(
inputId = "early_stopping",
label = "Early Stopping",
value = 10,
min = 1,
max = 500),
numericInput(
inputId = "eta",
label = "Learning Rate (eta)",
value = .3,
min = .001,
max = .999)#,
# actionButton(
# inputId = "rerun",
# label = "Re-Run Model")
),
# Main Panel
mainPanel(
tabsetPanel(
# title = img(src = "quantco.png", width = 200, align = "right"),
# title = "Calibrating XGBOOST",
# position = "fixed-top",
# inverse = TRUE,
# tabPanel(
# title = "Data",
# plotOutput("plot_sim")),
# tabPanel(
# title = "Loss Function",
# h6("Loss Function"),
# textOutput("Loss Function")#,
# # htmlOutput("model_summary")
# ),
# tabPanel(
# title = "Model KPIs",
# h6("main panel"),
# textOutput("selected_inputs"),
# htmlOutput("model_summary")
# ),
tabPanel(
title = "Partial Dependency Plot",
plotOutput("partial_dep")
),
tabPanel(
title = "Loss Function",
plotOutput("loss")
),
tabPanel(
title = "KPIs",
tableOutput("score")
)
)
)
)
)