forked from tylerIams/ActiveLearningApp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
96 lines (89 loc) · 3.48 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
94
95
96
# This is the user-interface definition of a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com
#
library(shiny)
library(tidyverse)
library(glmnet)
options(shiny.maxRequestSize = 1000*1024^2)
shinyUI(fluidPage(
# Application title
titlePanel("Welcome to Active Learning"),
# Sidebar with a slider input for number of bins
sidebarLayout(
sidebarPanel(
tags$h4(radioButtons("init", "Are images featurized properly?",
c("Yes", "No"), "")),
uiOutput("file"),
uiOutput("showImg"),
tableOutput("table"),
textOutput("detectImages"),
uiOutput("featurize"),
uiOutput("continue"),
hr(),
uiOutput("label"),
uiOutput("image"),
tags$h4(textOutput("labelTextInfo")),
tags$h4(textOutput("imageTextInfo")),
uiOutput("confirmSelection")
),
# Show a plot of the generated distribution
mainPanel(
tabsetPanel(id = "tabactice", type = "tabs",
tabPanel("Plot",
uiOutput("genMod"),
tags$h3(textOutput("acc")),
plotOutput("round"),
uiOutput("slider"),
hr(),
uiOutput("afterPlot")
),
tabPanel("Least Confident Data",
tableOutput("getDatToLab"),
uiOutput("numToExport"),
uiOutput("exportNeedLabs")),
tabPanel("Image",
tags$h4(textOutput("canYouLabel")),
uiOutput("img"),
hr(),
uiOutput("cheatLabeling"),
hr(),
uiOutput("applyLabel"),
uiOutput("saveLabel"),
tags$h3(textOutput("saveSuccessful")),
tags$p(textOutput("numLabelsInfo")),
hr(),
uiOutput("goToNextRound")),
tabPanel("View Dataset",
tableOutput("getView"),
hr(),
tags$h4(textOutput("dfSummary")),
hr(),
hr(),
uiOutput("continueTolabel")
),
tabPanel("View Featurized dataset",
tableOutput("getViewfeaturized")
),
tabPanel("Size of Labeled Data",
tags$h4(textOutput("sizeCheck")),
uiOutput("sizeInfo"),
hr(),
hr(),
uiOutput("StartLabeling"),
uiOutput("StartActice")
),
tabPanel("Active Learning Labeling",
tags$h4("Can you label this image?"),
uiOutput("showImage"),
uiOutput("applyAL_Label"),
uiOutput("saveAL_Label"),
uiOutput("ALsaveSuccessful")
# tags$h4(textOutput("goToNextRound"))
)
)
)
)
)
)